mirror of
https://github.com/EvilFreelancer/docker-routeros.git
synced 2025-07-15 09:04:40 +02:00
Properly propagate new tag to git push command.
This commit is contained in:
parent
de946d84b0
commit
08ae9e8ca8
1 changed files with 3 additions and 1 deletions
4
.github/workflows/tag.yml
vendored
4
.github/workflows/tag.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue