-
Notifications
You must be signed in to change notification settings - Fork 52
[TASK] Simplify ci.yml workflow dispatcher #707
New issue
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,17 +8,6 @@ on: | |
| jobs: | ||
| nightly-8: | ||
| name: "dispatch-nightly-8" | ||
| runs-on: ubuntu-22.04 | ||
| permissions: | ||
| actions: write | ||
| steps: | ||
| - name: Checkout '8' | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: '8' | ||
|
|
||
| - name: Execute 'ci.yml' on '8' | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| gh workflow run ci.yml --ref 8 | ||
| uses: ./.github/workflows/ci.yml | ||
| with: | ||
| ref: '8' | ||
|
Comment on lines
+11
to
+13
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inputs.refis referenced unconditionally, but theinputscontext is only populated forworkflow_call/workflow_dispatchruns. Since this workflow still runs onpushandpull_request, those events may fail at expression evaluation with an unrecognized context. Usegithub.event.inputs.ref(which safely resolves to empty when not present) or switch to a fallback likegithub.sha/github.refwithout referencinginputsfor non-call runs.