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 8d83037 commit 15969d3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,21 @@ jobs:
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
- name: Create and Push Tag
if: github.event_name == 'workflow_dispatch' && runner.os == 'Windows' # MANUAL RELEASE TRIGGER
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd "${{ github.workspace }}/contrib"
$TAG_NAME="release-" + (Get-Date -Format "yyyyMMddHHmmss")
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
git tag $TAG_NAME
git push origin $TAG_NAME
shell: 'pwsh'
# - name: Create and Push Tag
# if: github.event_name == 'workflow_dispatch' && runner.os == 'Windows' # MANUAL RELEASE TRIGGER
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# cd "${{ github.workspace }}/contrib"
# $TAG_NAME="release-" + (Get-Date -Format "yyyyMMddHHmmss")
# echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
# git tag $TAG_NAME
# git push origin $TAG_NAME
# shell: 'pwsh'
# should work with bash on windows as well, see below

- name: Create and Push Tag
if: github.event_name == 'workflow_dispatch' && runner.os != 'Windows' # MANUAL RELEASE TRIGGER
if: github.event_name == 'workflow_dispatch' # MANUAL RELEASE TRIGGER
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down

0 comments on commit 15969d3

Please sign in to comment.