analytics: allow tldraw.dev without www (#6978) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Trigger sdk hotfix | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [labeled] | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| trigger: | |
| name: Trigger an SDK hotfix | |
| runs-on: ubuntu-latest | |
| concurrency: npm-publish | |
| environment: npm deploy | |
| if: | | |
| github.event_name == 'push' || | |
| (github.event_name == 'pull_request' && | |
| github.event.pull_request.merged == true && | |
| (github.event.label.name == 'sdk-hotfix-please' || github.event.label.name == 'docs-hotfix-please')) | |
| steps: | |
| - name: Generate a token | |
| id: generate_token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.HUPPY_APP_ID }} | |
| private-key: ${{ secrets.HUPPY_APP_PRIVATE_KEY }} | |
| - uses: actions/checkout@v3 | |
| with: | |
| token: ${{ steps.generate_token.outputs.token }} | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/setup | |
| - name: Maybe trigger sdk hotfix | |
| run: | | |
| set -e | |
| git config --global user.name 'huppy-bot[bot]' | |
| git config --global user.email '128400622+huppy-bot[bot]@users.noreply.github.com' | |
| git log --oneline -10 | |
| yarn tsx internal/scripts/trigger-sdk-hotfix.ts | |
| env: | |
| GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | |
| TLDRAW_BEMO_URL: https://demo.tldraw.xyz | |
| DISCORD_DEPLOY_WEBHOOK_URL: ${{ secrets.DISCORD_DEPLOY_WEBHOOK_URL }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} |