File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ if [ -z "$TAG" ]; then
2424 echo " ERROR: TAG env var must be set"
2525 exit 1
2626fi
27+ # If the workflow checks out one commit, but is releasing another
28+ git fetch origin tag " $TAG "
29+ # Update our local state so the grep command below searches what we expect
30+ git checkout " $TAG "
31+
2732# Exclude dot directories, specifically, this file so that we don't
2833# find the substring we're looking for in our own file.
2934# Exclude CONTRIBUTING.md, RELEASING.md because they document how to use these strings.
4348# A prefix is added to better match the GitHub generated archives.
4449PREFIX=" rules_python-${TAG} "
4550ARCHIVE=" rules_python-$TAG .tar.gz"
46- # If the workflow checks out one commit, but is releasing another
47- git fetch origin tag " $TAG "
4851git archive --format=tar " --prefix=${PREFIX} /" " $TAG " | gzip > " $ARCHIVE "
4952SHA=$( shasum -a 256 " $ARCHIVE " | awk ' {print $1}' )
5053
You can’t perform that action at this time.
0 commit comments