Skip to content

Attempt 3

Attempt 3 #3

Workflow file for this run

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 }}