main #28
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: main | |
on: | |
schedule: | |
- cron: "0 */4 * * *" | |
workflow_dispatch: | |
repository_dispatch: | |
types: [pypi_release] | |
jobs: | |
build: | |
name: main | |
runs-on: ubuntu-latest | |
steps: | |
- if: ${{ startsWith(github.event_name, 'repository_dispatch') }} | |
run: sleep 30 | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: pip | |
cache-dependency-path: requirements-dev.txt | |
- run: pip install -r requirements-dev.txt | |
- name: set git config | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- run: python mirror.py | |
- run: | | |
git push origin HEAD:refs/heads/main | |
git push origin HEAD:refs/heads/main --tags |