Skip to content

Commit f01e8bc

Browse files
committed
fix: clarify sync step
1 parent 62b52ab commit f01e8bc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ jobs:
2727
2828
Once merged, Release Please will tag `v${version}` and publish the GitHub release automatically.
2929
- name: Enrich release notes with install instructions
30-
if: steps.release.outputs.release_created == 'true'
30+
if: always()
3131
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
TAG_NAME: ${{ steps.release.outputs.tag_name }}
3434
VERSION: ${{ steps.release.outputs.version }}
3535
REPOSITORY: ${{ github.repository }}
3636
run: |
3737
set -euo pipefail
38+
if [ "${{ steps.release.outputs.release_created }}" != "true" ]; then
39+
echo "No release created, skipping note enrichment."
40+
exit 0
41+
fi
3842
3943
TAR_URL="https://github.com/${REPOSITORY}/archive/refs/tags/${TAG_NAME}.tar.gz"
4044
TMP_ARCHIVE="$(mktemp)"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ Once changes land on `main`, the GitHub action opens a release PR. Merging that
5151

5252
If you need to double-check a release manually, re-run the `Release Please` workflow from the Actions tab; it will only open a new PR when there are user-facing commits since the last tag.
5353

54-
Use `bazel sync` after upgrading to ensure the Syft toolchain archives download for your host platform.
54+
Use `bazel sync` after upgrading to ensure the Syft toolchain archives download for your host platform; this refreshes the Syft binaries for the host OS/architecture.

0 commit comments

Comments
 (0)