From aa68932532eb5b193e7b8044d88e9b8d67b550ae Mon Sep 17 00:00:00 2001 From: Timo Sachsenberg Date: Wed, 17 Apr 2024 16:42:05 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3a898d..55c2f6b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,6 +22,13 @@ jobs: CMAKE_ARGS: -G"Visual Studio 17 2022" -A"x64" steps: + + - name: Set global action variables + shell: bash + run: | + TAG_NAME="release-$(date +'%Y%m%d')" + echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV + - uses: actions/checkout@v4 with: path: contrib @@ -90,8 +97,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | cd "${{ github.workspace }}/contrib" - TAG_NAME="release-$(date +'%Y%m%d%H%M%S')" - echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV git tag $TAG_NAME git push origin $TAG_NAME shell: 'bash'