Add github action to auto-update
This commit is contained in:
parent
eef73e213c
commit
9feadebfdc
23
.github/workflows/main.yml
vendored
Normal file
23
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: main
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
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 pre-commit
|
||||
- run: git config --global user.email pre-commit@example.com
|
||||
- run: pre-commit-mirror . --language=python --package-name=mypy --types=python --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/master --tags
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user