-
Notifications
You must be signed in to change notification settings - Fork 295
Sync gh-aw-actions before creating the GitHub release #20537
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -143,23 +143,18 @@ jobs: | |||||
|
|
||||||
| core.setOutput('release_tag', releaseTag); | ||||||
| console.log(`✓ Release tag: ${releaseTag}`); | ||||||
| release: | ||||||
| push_tag: | ||||||
| needs: ["pre_activation", "activation", "config"] | ||||||
| runs-on: ubuntu-latest | ||||||
| permissions: | ||||||
| contents: write | ||||||
| packages: write | ||||||
| id-token: write | ||||||
| attestations: write | ||||||
| outputs: | ||||||
| release_id: ${{ steps.get_release.outputs.release_id }} | ||||||
| steps: | ||||||
| - name: Checkout repository | ||||||
| uses: actions/checkout@v6.0.2 | ||||||
| with: | ||||||
| fetch-depth: 0 | ||||||
| persist-credentials: true | ||||||
|
|
||||||
| - name: Create or update tag | ||||||
| env: | ||||||
| RELEASE_TAG: ${{ needs.config.outputs.release_tag }} | ||||||
|
|
@@ -170,7 +165,7 @@ jobs: | |||||
| git tag "$RELEASE_TAG" | ||||||
| git push origin "$RELEASE_TAG" | ||||||
| echo "✓ Tag created: $RELEASE_TAG" | ||||||
|
|
||||||
| - name: Setup Go | ||||||
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | ||||||
| with: | ||||||
|
|
@@ -199,6 +194,56 @@ jobs: | |||||
| BINARY=dist/linux-amd64 | ||||||
| cache-from: type=gha | ||||||
|
|
||||||
| - name: Upload release binaries | ||||||
| uses: actions/upload-artifact@v7 | ||||||
| with: | ||||||
| name: release-binaries-${{ needs.config.outputs.release_tag }} | ||||||
| path: dist/ | ||||||
| retention-days: 1 | ||||||
|
|
||||||
| sync_actions: | ||||||
| needs: ["pre_activation", "activation", "config", "push_tag"] | ||||||
| uses: github/gh-aw-actions/.github/workflows/sync-actions.yml@main | ||||||
|
||||||
| uses: github/gh-aw-actions/.github/workflows/sync-actions.yml@main | |
| uses: github/gh-aw-actions/.github/workflows/sync-actions.yml@v1.0.0 |
Copilot
AI
Mar 11, 2026
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.
The gh api path uses git/refs/tags/..., but the GitHub REST endpoint used elsewhere in this repo is git/ref/tags/... (singular ref). As written, this check is likely to 404 even when the tag exists, causing the release to fail every time.
| if gh api "repos/github/gh-aw-actions/git/refs/tags/$RELEASE_TAG" --jq '.ref' > /dev/null 2>&1; then | |
| if gh api "repos/github/gh-aw-actions/git/ref/tags/$RELEASE_TAG" --jq '.ref' > /dev/null 2>&1; then |
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.
retention-days: 1for the uploaded binaries is likely too short now that the workflow can block onsync_actionswaiting for a PR to merge/tag to be created. If that takes >24h, the artifact may expire before thereleasejob runs; consider increasing retention (e.g., several days) to match expected sync latency.