Skip to content

Commit

Permalink
try check
Browse files Browse the repository at this point in the history
  • Loading branch information
SandroBarillaPXL committed Oct 3, 2024
1 parent 9c3f440 commit 443cc0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
- name: Set image tag
run: |
COMMIT_MSG="${{ github.event.head_commit.message }}"
if [[ "$COMMIT_MSG" =~ ^\[TAG\] ]]; then
if [[ "$COMMIT_MSG" == "[TAG]"* ]]; then
TAG=$(echo $COMMIT_MSG | grep -oP '(?<=\[TAG\])\S+')
echo "TAG=$TAG" >> $GITHUB_ENV
else
echo "TAG='latest'" >> $GITHUB_ENV
echo "TAG=latest" >> $GITHUB_ENV
fi
echo "TAG: $TAG"
#source: https://chatgpt.com/share/66fe5874-6410-8009-ab95-d2fe9956a708
Expand Down

0 comments on commit 443cc0e

Please sign in to comment.