This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
main #1231
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: | |
push: | |
branches: [main] | |
schedule: | |
- cron: '15 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=node --package-name=prettier --types=text --entry='prettier --write --ignore-unknown' --id=prettier | |
- run: | | |
git remote set-url origin https://x-access-token:[email protected]/$GITHUB_REPOSITORY | |
git push origin HEAD:refs/heads/main --tags | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |