Skip to content

Commit

Permalink
Specify correct branch name to Wrangler action
Browse files Browse the repository at this point in the history
The Cloudflare Wrangler action doesn't detect the branch name for
`pull_request` triggers, so we have to specify it explicitly.
  • Loading branch information
praseodym committed Jul 19, 2024
1 parent 7bac0f7 commit 8238366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
with:
apiToken: ${{ secrets.API_TOKEN }}
accountId: ${{ secrets.ACCOUNT_ID }}
command: pages deploy dist --project-name=${{ vars.PROJECT_NAME }}
command: pages deploy dist --project-name=${{ vars.PROJECT_NAME }} --branch ${{ github.head_ref || github.ref }} --commit-hash ${GITHUB_SHA}
workingDirectory: frontend
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 8238366

Please sign in to comment.