CI #120
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: CI | |
| on: | |
| schedule: | |
| - cron: "50 1 * * 1" | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| name: Upgrade hook | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: astral-sh/setup-uv@v7 | |
| - run: git config user.name 'Github Actions' | |
| - run: git config user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
| - run: uv run --no-project .github/workflows/update.py | |
| - run: | | |
| git remote set-url origin https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }} | |
| for tag in $(git tag); do | |
| git push origin $tag | |
| done | |
| git push origin HEAD:refs/heads/main | |
| # for-loop is required to trigger CI on the tags | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |