Skip to content

Commit 41cfe5c

Browse files
committed
pass input tag to notes script
1 parent 9c1e9e8 commit 41cfe5c

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/create_archive_and_notes.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ fi
2727

2828
# Set by GH actions, see
2929
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
30-
TAG=${GITHUB_REF_NAME}
30+
if [ -z "$TAG" ]; then
31+
echo "ERROR: TAG env var must be set"
32+
exit 1
33+
fi
3134
# A prefix is added to better match the GitHub generated archives.
3235
PREFIX="rules_python-${TAG}"
3336
ARCHIVE="rules_python-$TAG.tar.gz"

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
with:
4444
ref: ${{ inputs.tag_name || github.ref_name }}
4545
- name: Create release archive and notes
46+
env:
47+
TAG: ${{ inputs.tag_name || github.ref_name }}
4648
run: .github/workflows/create_archive_and_notes.sh
4749
- name: Release
4850
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)