Skip to content

Commit

Permalink
Merge pull request #20 from tfso/bugfix/unexpected-token
Browse files Browse the repository at this point in the history
bugfix/Unexpected tokens like (
  • Loading branch information
lostfields authored May 11, 2023
2 parents b552aa3 + eb6cb80 commit be02081
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions npm-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ runs:
echo "deploy=${{ contains(github.event.head_commit.message, '#deploy_branch') && 'true' || 'false' }}" >> $GITHUB_OUTPUT
if [ $TRUNCATE == "1" ]; then
echo "prerelease=$(echo ${{ github.ref_name }} | sed 's/\([a-zA-Z0-9]\+\).*/\1/g')" >> $GITHUB_OUTPUT
echo "prerelease=$(echo $REFNAME | sed 's/\([a-zA-Z0-9]\+\).*/\1/g')" >> $GITHUB_OUTPUT
else
echo "prerelease=$(echo ${{ github.ref_name }} | sed 's/[^a-zA-Z0-9]/-/g')" >> $GITHUB_OUTPUT
echo "prerelease=$(echo $REFNAME | sed 's/[^a-zA-Z0-9]/-/g')" >> $GITHUB_OUTPUT
fi
env:
REFNAME: ${{ github.ref_name }}
TRUNCATE: ${{ contains(inputs.TRUNCATE_PRERELEASE, 'false') && '0' || '1' }}

- shell: bash
Expand Down
5 changes: 3 additions & 2 deletions yarn-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ runs:
echo "deploy=${{ contains(github.event.head_commit.message, '#deploy_branch') && 'true' || 'false' }}" >> $GITHUB_OUTPUT
if [ $TRUNCATE == "1" ]; then
echo "prerelease=$(echo ${{ github.ref_name }} | sed 's/\([a-zA-Z0-9]\+\).*/\1/g')" >> $GITHUB_OUTPUT
echo "prerelease=$(echo $REFNAME | sed 's/\([a-zA-Z0-9]\+\).*/\1/g')" >> $GITHUB_OUTPUT
else
echo "prerelease=$(echo ${{ github.ref_name }} | sed 's/[^a-zA-Z0-9]/-/g')" >> $GITHUB_OUTPUT
echo "prerelease=$(echo $REFNAME | sed 's/[^a-zA-Z0-9]/-/g')" >> $GITHUB_OUTPUT
fi
env:
REFNAME: ${{ github.ref_name }}
TRUNCATE: ${{ contains(inputs.TRUNCATE_PRERELEASE, 'false') && '0' || '1' }}

- shell: bash
Expand Down

0 comments on commit be02081

Please sign in to comment.