Skip to content

Commit

Permalink
ci: copy CI from other mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
Anderson Entwistle committed Nov 7, 2023
1 parent 9116300 commit f40f8bb
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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=commitlint --types=text --entry='commitlint --edit' --id=commitlint
- 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 }}

0 comments on commit f40f8bb

Please sign in to comment.