We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c1e9e8 commit 41cfe5cCopy full SHA for 41cfe5c
2 files changed
.github/workflows/create_archive_and_notes.sh
@@ -27,7 +27,10 @@ fi
27
28
# Set by GH actions, see
29
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
30
-TAG=${GITHUB_REF_NAME}
+if [ -z "$TAG" ]; then
31
+ echo "ERROR: TAG env var must be set"
32
+ exit 1
33
+fi
34
# A prefix is added to better match the GitHub generated archives.
35
PREFIX="rules_python-${TAG}"
36
ARCHIVE="rules_python-$TAG.tar.gz"
.github/workflows/release.yml
@@ -43,6 +43,8 @@ jobs:
43
with:
44
ref: ${{ inputs.tag_name || github.ref_name }}
45
- name: Create release archive and notes
46
+ env:
47
+ TAG: ${{ inputs.tag_name || github.ref_name }}
48
run: .github/workflows/create_archive_and_notes.sh
49
- name: Release
50
uses: softprops/action-gh-release@v2
0 commit comments