Skip to content

🔧 config:confine pre-commit to stages #8

🔧 config:confine pre-commit to stages

🔧 config:confine pre-commit to stages #8

Workflow file for this run

name: main
on:
push:
branches: [main]
workflow_dispatch:
schedule:
- cron: '43 5 * * *'
jobs:
build:
name: main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: python -m pip install "urllib3>=2" tomli-w tomli packaging
- run: git config --global user.name 'Github Actions'
- run: git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
- run: python mirror.py
- run: |
git remote set-url origin https://x-access-token:[email protected]/$GITHUB_REPOSITORY
git push origin HEAD:refs/heads/main --tags
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}