We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If an on: schedule: cron is used, the checkout action will always pull the default branch. Minimal example:
on: schedule: cron
name: Checkout non default branch on: schedule: - cron: "0 * * * *" jobs: build: runs-on: ubuntu-latest steps: - name: Check out repo uses: actions/checkout@v4 with: ref: non_default_branch
From action runs we can see the default branch is used, ignoring the ref.
ref
The workflow_dispatch and on: push work as expected with the specified branch used.
workflow_dispatch
on: push
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If an
on: schedule: cron
is used, the checkout action will always pull the default branch. Minimal example:From action runs we can see the default branch is used, ignoring the
ref
.The
workflow_dispatch
andon: push
work as expected with the specified branch used.The text was updated successfully, but these errors were encountered: