File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ jobs:
1919 name : Set browser version
2020 id : set-browser-version
2121 run : |
22- IFS='/-'; PARTS=($GITHUB_REF ); unset IFS;
23- echo "BROWSER=${PARTS[2 ]}" >> $GITHUB_ENV
24- echo "BROWSER_VERSION=${PARTS[3 ]}" >> $GITHUB_ENV
25- if [[ "${PARTS[2 ]}" != "chrome" && "${PARTS[2 ]}" != "brave" ]]; then
26- echo "Exiting, invalid browser in tag '${PARTS[2 ]}', must be either 'chrome' or 'brave'"
22+ IFS='/-'; PARTS=($GITHUB_REF_NAME ); unset IFS;
23+ echo "BROWSER=${PARTS[0 ]}" >> $GITHUB_ENV
24+ echo "BROWSER_VERSION=${PARTS[1 ]}" >> $GITHUB_ENV
25+ if [[ "${PARTS[0 ]}" != "chrome" && "${PARTS[0 ]}" != "brave" ]]; then
26+ echo "Exiting, invalid browser in tag '${PARTS[0 ]}', must be either 'chrome' or 'brave'"
2727 exit 1
2828 fi
2929 -
You can’t perform that action at this time.
0 commit comments