Attempt 3 #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Tag | |
on: | |
push: | |
branches: | |
- master | |
- NightlyTest | |
jobs: | |
update-nightly-tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GITHUB_PAT }} | |
- name: Create or update nightly tag | |
run: | | |
git config --global user.name "GitHub Action" | |
git config --global user.email "[email protected]" | |
# Delete the nightly tag if it exists (both locally and remotely) | |
git tag -d nightly || true | |
git push origin :refs/tags/nightly || true | |
# Create new nightly tag | |
git tag nightly | |
git push origin nightly | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_PAT }} |