Create tags for prod deploys #1459
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 tags for prod deploys | |
on: | |
schedule: | |
# Daily | |
# https://crontab.guru/#0_12_*_*_* | |
- cron: "0 12 * * *" | |
# Whenever someone asks | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # We need the full history to check for preexisting tags | |
token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
persist-credentials: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16.x" | |
registry-url: "https://registry.npmjs.org" | |
# Setup Git | |
- run: git config user.name "typescript-bot" | |
- run: git config user.email "[email protected]" | |
- name: "Create new tags" | |
run: | | |
yarn install | |
node make-git-tags-for-new-builds.js | |
git push origin --tags |