24 lines
811 B
YAML
24 lines
811 B
YAML
name: main
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
schedule:
|
|
- cron: '30 8 * * *'
|
|
|
|
jobs:
|
|
build:
|
|
name: main
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/setup-python@v1
|
|
- run: pip install pre-commit-mirror-maker
|
|
- run: git config --global user.name 'Github Actions'
|
|
- run: git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
|
- run: pre-commit-mirror . --language=python --package-name=mypy --types-or=python --types-or=pyi --args=--ignore-missing-imports,--scripts-are-modules --require-serial
|
|
- run: |
|
|
git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/$GITHUB_REPOSITORY
|
|
git push origin HEAD:refs/heads/main --tags
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|