Skip to content

Commit

Permalink
[TAG]v3-tagged test3
Browse files Browse the repository at this point in the history
fix regex
newline tekst
  • Loading branch information
SandroBarillaPXL committed Oct 3, 2024
1 parent 603bb0a commit a266b0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ jobs:
runs-on: ubuntu-latest
#needs: test
steps:
- name: Set tag
- name: Set image tag
run: |
COMMIT_MSG="${{ github.event.head_commit.message }}"
if [[ "$COMMIT_MSG" =~ ^\[TAG\] ]]; then
TAG=$(echo "$COMMIT_MSG" | grep -oP '(?<=\[TAG\]).*?' | awk '{print $1}')
TAG=$(echo $COMMIT_MSG | grep -oP '(?<=\[TAG\])\S+')
echo "TAG=$TAG" >> $GITHUB_ENV
else
echo "TAG=latest" >> $GITHUB_ENV
fi
echo "TAG=$TAG"
echo "TAG: $TAG"
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down

0 comments on commit a266b0a

Please sign in to comment.