Description
The deploy jobs in .github/workflows/push.yml currently only run when:
if: github.ref == 'refs/heads/main'
However, the repository's current default branch is 16.x.x, and there is no main branch in the repository.
That means the deploy jobs appear to be unreachable on the active branches that currently carry this workflow.
Current workflow
on: push
jobs:
deploy-to-npm-branch:
needs: ci
if: github.ref == 'refs/heads/main'
...
deploy-to-deno-branch:
needs: ci
if: github.ref == 'refs/heads/main'
...
Evidence
gh repo view graphql/graphql-js --json defaultBranchRef reports the default branch as 16.x.x.
git branch -r in a fresh clone does not show origin/main.
- A recent
push.yml run on the default branch (16.x.x) completed CI and artifact build jobs, but both deploy jobs were skipped:
- workflow run:
Push run 26132380585
- head branch:
16.x.x
- skipped jobs:
Deploy to 'npm' branch and Deploy to 'deno' branch
Possible fix
Update the branch condition to match the branch that should actually trigger these deployments, or otherwise derive it from the current release workflow.
Follow-up
If the branch gate is updated, the commit_message values in the same workflow may also need attention because they currently reference github.event.workflow_run.head_sha, even though this workflow runs on push events.
Description
The deploy jobs in
.github/workflows/push.ymlcurrently only run when:However, the repository's current default branch is
16.x.x, and there is nomainbranch in the repository.That means the deploy jobs appear to be unreachable on the active branches that currently carry this workflow.
Current workflow
Evidence
gh repo view graphql/graphql-js --json defaultBranchRefreports the default branch as16.x.x.git branch -rin a fresh clone does not showorigin/main.push.ymlrun on the default branch (16.x.x) completed CI and artifact build jobs, but both deploy jobs were skipped:Pushrun2613238058516.x.xDeploy to 'npm' branchandDeploy to 'deno' branchPossible fix
Update the branch condition to match the branch that should actually trigger these deployments, or otherwise derive it from the current release workflow.
Follow-up
If the branch gate is updated, the
commit_messagevalues in the same workflow may also need attention because they currently referencegithub.event.workflow_run.head_sha, even though this workflow runs onpushevents.