diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dd4db12..d7f142d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,10 +9,14 @@ on: jobs: deploy: runs-on: ubuntu-latest - environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'staging' }} + environment: ${{ github.event.workflow_run.head_branch == 'main' && 'production' || 'staging' }} if: ${{ github.event.workflow_run.conclusion == 'success' }} - timeout-minutes: 60 + timeout-minutes: 10 steps: + - name: Debug + run: ${{ tojson(github.event) }} + shell: cat {0} + - name: Check out Git repository uses: actions/checkout@v4 @@ -38,7 +42,7 @@ jobs: wranglerVersion: 3.84.1 apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'staging' }} + environment: ${{ github.event.workflow_run.head_branch == 'main' && 'production' || 'staging' }} vars: | DISCORD_APP_ID DISCORD_PUBLIC_KEY