Skip to content

Commit

Permalink
ci: add branch name to Cloudflare pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Dec 14, 2023
1 parent 0384b99 commit dd060ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:

- uses: cloudflare/pages-action@v1
with:
# Explicit branch name needed because of: https://github.com/cloudflare/pages-action/issues/97
branch: ${{ github.head_ref || github.ref_name }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ inputs.projectName }}
Expand Down

0 comments on commit dd060ea

Please sign in to comment.