Skip to content

Commit

Permalink
Merge pull request #23 from Bluebugs/master
Browse files Browse the repository at this point in the history
Properly propagate new tag to git push command.
  • Loading branch information
EvilFreelancer committed Feb 10, 2024
2 parents e797bbe + 08ae9e8 commit 1f681f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '[email protected]'
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 }}

0 comments on commit 1f681f9

Please sign in to comment.