Merge pull request #65 from pre-commit/all-repos_autofix_master-to-main

Update default branch to main
This commit is contained in:
Anthony Sottile 2022-03-24 16:23:53 -04:00 committed by GitHub
commit 109ec45041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
name: main
on:
push:
branches: [master]
branches: [main]
schedule:
- cron: '30 8 * * *'
@ -18,6 +18,6 @@ jobs:
- 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/master --tags
git push origin HEAD:refs/heads/main --tags
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}