Skip to content

Mirror Releases

Mirror Releases #1

Workflow file for this run

name: Mirror Releases
on:
# Trigger manually in the UI
workflow_dispatch:
# Trigger daily at 06:45 UTC
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "45 6 * * *"
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: git checkout -b mirror_releases
- run: |
./lint/mirror_ruff.sh
bazel run docs:update
# NB: make sure "Allow GitHub Actions to create and approve pull requests" is checked
# on https://github.com/[my-org/my-repo]/settings/actions
- name: create pull request
run: "gh pr create --title 'chore: mirror releases' --body 'Auto-generated by .github/workflows/mirror.yml'"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}