We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
main
1 parent e561f57 commit 5d4dd3eCopy full SHA for 5d4dd3e
.github/workflows/docs.yaml
@@ -51,4 +51,5 @@ jobs:
51
with:
52
apiToken: ${{ secrets.CF_API_TOKEN }}
53
accountId: ${{ secrets.CF_ACCOUNT_ID }}
54
- command: pages deploy site --project-name=ruff-docs --branch ${GITHUB_HEAD_REF} --commit-hash ${GITHUB_SHA}
+ # `github.head_ref` is only set during pull requests and for manual runs or tags we use `main` to deploy to production
55
+ command: pages deploy site --project-name=ruff-docs --branch ${{ github.head_ref || 'main' }} --commit-hash ${GITHUB_SHA}
0 commit comments