Merge pull request #23 from Bluebugs/master

Properly propagate new tag to git push command.
This commit is contained in:
Pavel Zloi 2024-02-10 16:52:33 +03:00 committed by GitHub
commit 1f681f93b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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