-
Notifications
You must be signed in to change notification settings - Fork 23
Fix a few issues in GHA workflows #2474
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
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 |
|---|---|---|
| @@ -1,8 +1,5 @@ | ||
| name: Fetch latest versions | ||
|
|
||
| # When triggering a manual execution of the workflow, you may want to disable the scheduled execution temporarily | ||
| # to ensure that any in-flight generated PR is not overridden by the scheduled execution. | ||
|
|
||
| on: | ||
| schedule: | ||
| # Run once a day at 10 AM EST | ||
|
|
@@ -11,6 +8,10 @@ on: | |
| permissions: | ||
| contents: read | ||
| issues: write | ||
|
|
||
| # Only allow a single fetch-versions workflow to run at a time so a manual run | ||
| # and the scheduled run don't race on the fetch-versions PR branch. | ||
| concurrency: ${{ github.workflow }} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TIL there's a short form version of |
||
| jobs: | ||
| fetch-versions: | ||
| if: github.repository == 'bufbuild/plugins' | ||
|
|
@@ -88,7 +89,7 @@ jobs: | |
| if: ${{ failure() }} | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.generate_issues_token.outputs.token }} | ||
| GITHUB_SERVER_URL: ${ github.server_url }} | ||
| GITHUB_SERVER_URL: ${{ github.server_url }} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Surprisingly this never broke anything. I guess if there is a syntax error it just doesn't set the env var, falling back to the existing one? |
||
| GITHUB_REPOSITORY: ${{ github.repository }} | ||
| GITHUB_RUN_ID: ${{ github.run_id }} | ||
| GITHUB_RUN_ATTEMPT: ${{ github.run_attempt }} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.