diff --git a/.github/workflows/deploy_specific_commit_to_dev.yml b/.github/workflows/deploy_specific_commit_to_dev.yml index a2fb7b5ba..a08cd4a7e 100644 --- a/.github/workflows/deploy_specific_commit_to_dev.yml +++ b/.github/workflows/deploy_specific_commit_to_dev.yml @@ -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 ] @@ -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 }}