Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9feadeb

Browse files
committed
Add github action to auto-update
1 parent eef73e2 commit 9feadeb

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: main
2+
on:
3+
push:
4+
branches: [master]
5+
schedule:
6+
- cron: '30 8 * * *'
7+
8+
jobs:
9+
build:
10+
name: main
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- uses: actions/setup-python@v1
15+
- run: pip install pre-commit-mirror-maker
16+
- run: git config --global user.name pre-commit
17+
- run: git config --global user.email [email protected]
18+
- run: pre-commit-mirror . --language=python --package-name=mypy --types=python --args=--ignore-missing-imports,--scripts-are-modules --require-serial
19+
- run: |
20+
git remote set-url origin https://x-access-token:[email protected]/$GITHUB_REPOSITORY
21+
git push origin HEAD:refs/heads/master --tags
22+
env:
23+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)