Skip to content

Commit

Permalink
chores: fixing ci for tag pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
loic-lb committed May 17, 2024
1 parent b298d8c commit 65e6039
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Check commit type
if: ! contains(github.ref, 'tags')
id: check-type
run: |
COMMIT_MSG=$(git log --format=%B -n 1 ${{ github.event.after }})
COMMIT_TYPE=$(echo $COMMIT_MSG | cut -d' ' -f1 | tr -d ':')
echo "Commit type is '$COMMIT_TYPE'"
echo "type=$COMMIT_TYPE" >> "$GITHUB_OUTPUT"
- name: Check if tests should be skipped
if: ! contains(github.ref, 'tags')
id: check-skip
run: |
COMMIT_TYPE=${{ steps.check-type.outputs.type }}
Expand Down

0 comments on commit 65e6039

Please sign in to comment.