Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
timosachsenberg authored Apr 17, 2024
1 parent dfdf5fe commit aa68932
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit aa68932

Please sign in to comment.