Skip to content

Commit

Permalink
ci: use GITHUB_REF_NAME instead of GITHUB_REF for getting tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Oct 24, 2023
1 parent c6d93aa commit 0447911
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
name: Set browser version
id: set-browser-version
run: |
IFS='/-'; PARTS=($GITHUB_REF); unset IFS;
echo "BROWSER=${PARTS[2]}" >> $GITHUB_ENV
echo "BROWSER_VERSION=${PARTS[3]}" >> $GITHUB_ENV
if [[ "${PARTS[2]}" != "chrome" && "${PARTS[2]}" != "brave" ]]; then
echo "Exiting, invalid browser in tag '${PARTS[2]}', must be either 'chrome' or 'brave'"
IFS='/-'; PARTS=($GITHUB_REF_NAME); unset IFS;
echo "BROWSER=${PARTS[0]}" >> $GITHUB_ENV
echo "BROWSER_VERSION=${PARTS[1]}" >> $GITHUB_ENV
if [[ "${PARTS[0]}" != "chrome" && "${PARTS[0]}" != "brave" ]]; then
echo "Exiting, invalid browser in tag '${PARTS[0]}', must be either 'chrome' or 'brave'"
exit 1
fi
-
Expand Down

0 comments on commit 0447911

Please sign in to comment.