Skip to content

Commit

Permalink
attempt to fix reading the tag in action
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson committed Nov 3, 2020
1 parent 35895f6 commit 6136d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: check sauce access
id: check_sauce_access
run: |
if ! [[ -z "$SAUCE_USERNAME" ]] && ! [[ -z "$SAUCE_ACCESS_KEY" ]]; then
if ! [[ -z "$SAUCE_USERNAME" ]] && ! [[ -z "$SAUCE_ACCESS_KEY" ]]; then
echo "::set-output name=result::true"
fi
env:
Expand All @@ -29,7 +29,7 @@ jobs:
uses: actions/github-script@v3
with:
script: |
const prefix = '/refs/tags/';
const prefix = 'refs/tags/';
const ref = context.ref;
return ref.startsWith(prefix) ? ref.substring(prefix.length) : '';
result-encoding: string
Expand Down

0 comments on commit 6136d88

Please sign in to comment.