Skip to content

Commit

Permalink
VA-407-3: Fix "not a valid [git] tag name" by converting colons to un…
Browse files Browse the repository at this point in the history
…derscores and replacing slash with dash
  • Loading branch information
anttu committed Dec 29, 2023
1 parent 601b191 commit e4675d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: set now timestamp
id: now
run: echo "timestamp=$(date -Iseconds)" >> $GITHUB_OUTPUT
run: echo "timestamp=$(date -Iseconds | sed s/:/_/g )" >> $GITHUB_OUTPUT

- name: Update green tag
if: steps.deploy.outcome == 'success'
Expand All @@ -47,7 +47,7 @@ jobs:
git config user.email [email protected]
git tag --force va-green-${{ inputs.env }}
git push --force origin va-green-${{ inputs.env }}
git tag va-green-${{ inputs.env }}/${{ steps.now.outputs.timestamp }}
git tag va-green-${{ inputs.env }}-${{ steps.now.outputs.timestamp }}
git push origin va-green-${{ inputs.env }}/${{ steps.now.outputs.timestamp }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e4675d2

Please sign in to comment.