Skip to content

Commit

Permalink
[TAG]v3-tagged test2
Browse files Browse the repository at this point in the history
try other string extraction method
  • Loading branch information
SandroBarillaPXL committed Oct 3, 2024
1 parent 6e05623 commit 603bb0a
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 @@ -19,18 +19,18 @@ jobs:
run: npm test
docker:
runs-on: ubuntu-latest
needs: test
#needs: test
steps:
- name: Set tag
run: |
COMMIT_MSG="${{ github.event.head_commit.message }}"
echo "Commit message: $COMMIT_MSG"
if [[ "$COMMIT_MSG" =~ ^\[TAG\] ]]; then
TAG=$(echo "$COMMIT_MSG" | sed 's/^\[TAG\] *//' | tr -d '\r\n')
TAG=$(echo "$COMMIT_MSG" | grep -oP '(?<=\[TAG\]).*?' | awk '{print $1}')
echo "TAG=$TAG" >> $GITHUB_ENV
else
echo "TAG=latest" >> $GITHUB_ENV
fi
echo "TAG=$TAG"
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down

0 comments on commit 603bb0a

Please sign in to comment.