Create Periodic Tag #3
This file contains 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: Create Periodic Tag | |
on: | |
schedule: | |
# Run at 00:00 UTC on the 1st, 10th, and 20th of every month | |
- cron: '0 0 1,10,20 * *' | |
workflow_dispatch: | |
jobs: | |
create-tag: | |
runs-on: ubuntu-latest | |
if: github.repository == 'pyodide/pyodide-build-environment-nightly' | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: "0" | |
- name: Create and push tag | |
run: | | |
git config --global user.name "Pyodide CI" | |
git config --global user.email "[email protected]" | |
TAG_NAME=$(date +'%Y%m%d') | |
git tag $TAG_NAME | |
git push origin $TAG_NAME | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |