Properly propagate new tag to git push command.

This commit is contained in:
Cedric BAIL 2024-02-09 18:07:19 -07:00
parent de946d84b0
commit 08ae9e8ca8

View file

@ -25,12 +25,14 @@ jobs:
fetch-depth: '0'
- name: Add new tag on git
id: tag
run: |
NEW_TAG=$(grep 'ROUTEROS_VERSION="' Dockerfile |cut -d '"' -f 2)
git config user.name 'GitHub Actions'
git config user.email 'github-actions@users.noreply.github.com'
git tag "$NEW_TAG"
echo "new_tag=$NEW_TAG" >> "$GITHUB_OUTPUT"
- name: Push new tag to git
if: ${{ !env.ACT }}
run: git push origin "$NEW_TAG"
run: git push origin ${{ steps.tag.outputs.new_tag }}