File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,17 +27,16 @@ if grep --exclude=CONTRIBUTING.md --exclude=RELEASING.md --exclude-dir=.* VERSIO
2727 # exit 1
2828fi
2929
30- # Set by GH actions, see
31- # https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
30+ TAG=$1
3231if [ -z " $TAG " ]; then
3332 echo " ERROR: TAG env var must be set"
3433 exit 1
3534fi
3635# A prefix is added to better match the GitHub generated archives.
3736PREFIX=" rules_python-${TAG} "
3837ARCHIVE=" rules_python-$TAG .tar.gz"
39- git archive --format=tar --prefix=${PREFIX} / ${ TAG} | gzip > $ARCHIVE
40- SHA=$( shasum -a 256 $ARCHIVE | awk ' {print $1}' )
38+ git archive --format=tar " --prefix=${PREFIX} /" " $ TAG" | gzip > " $ARCHIVE "
39+ SHA=$( shasum -a 256 " $ARCHIVE " | awk ' {print $1}' )
4140
4241cat > release_notes.txt << EOF
4342
Original file line number Diff line number Diff line change 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 }}
48- run : .github/workflows/create_archive_and_notes.sh
46+ run : .github/workflows/create_archive_and_notes.sh ${{ inputs.tag_name || github.ref_name }}
4947 - name : Release
5048 uses : softprops/action-gh-release@v2
5149 with :
You can’t perform that action at this time.
0 commit comments