Skip to content

Commit

Permalink
⚗️ Funker dette bedre?
Browse files Browse the repository at this point in the history
  • Loading branch information
havstein committed Nov 10, 2024
1 parent 5e9ae74 commit 127abf8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy_specific_commit_to_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
ref: ${{ github.event.inputs.commitHash }}
- name: Lag tag for senere workflows
run: |
git tag denne_skal_deployes_til_dev-$(date +%Y-%m-%dT%H.%M.%S)
git push origin denne_skal_deployes_til_dev
export TAG="denne_skal_deployes_til_dev-$(date +%Y-%m-%dT%H.%M.%S))"
echo "$TAG" >> $GITHUB_ENV
git tag "$TAG"
git push origin "$TAG"
build:
needs: [ lag_tag ]
Expand Down Expand Up @@ -57,4 +59,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: |
git push --delete origin refs/tags/denne_skal_deployes_til_dev
git push --delete origin refs/tags/${{ env.TAG }}

0 comments on commit 127abf8

Please sign in to comment.