Skip to content

Commit 11df7a0

Browse files
authored
chore: Fixes compliance step access to release tag value (#623)
1 parent 50f2fbf commit 11df7a0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/autorelease.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ jobs:
1818
- name: Release env
1919
id: set_tag
2020
working-directory: ./tools
21-
run: |
22-
./releaser/scripts/setghenv.sh
23-
echo "release_tag=${RELEASE_TAG}" >> $GITHUB_OUTPUT
21+
run: ./releaser/scripts/setghenv.sh
2422
- name: Create Release
2523
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631
2624
with:

tools/releaser/scripts/setghenv.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@ fi
4646
echo "$RELEASE_NOTES"
4747
echo "$EOF"
4848
} >> "$GITHUB_ENV"
49+
50+
# Set the release_tag output for GitHub Actions
51+
if [ -n "${GITHUB_OUTPUT:-}" ]; then
52+
echo "release_tag=${SDK_VERSION}" >> "$GITHUB_OUTPUT"
53+
fi

0 commit comments

Comments
 (0)