Skip to content

Commit

Permalink
fix: semantic release detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Dec 27, 2022
1 parent d989097 commit 59daec3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
semantic-release:
name: 🤖 Semantic release
runs-on: ubuntu-latest
# if: ${{ github.ref_name == 'master' && github.event_name == 'push' }}
if: ${{ github.ref_name == 'master' && github.event_name == 'push' }}
outputs:
release: ${{ steps.tag_release.outputs.release }}
version: ${{ steps.tag_release.outputs.version }}
Expand All @@ -85,13 +85,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx semantic-release | tee semantic-release.log
if [[ `git tag --points-at HEAD` == "" ]]; then
echo "release=False" >> $GITHUB_OUTPUT
else
echo "release=True" >> $GITHUB_OUTPUT
awk '/Published release/ { printf("version=v%s\n",$8) }' semantic-release.log >> $GITHUB_OUTPUT
fi
npx semantic-release | tee semantic-release.log
awk '/Published release/ { printf("version=v%s\n",$8) }' semantic-release.log >> $GITHUB_OUTPUT
cmake-build:
name: 🏗️ cmake build linux amd64
Expand Down

0 comments on commit 59daec3

Please sign in to comment.