-
Notifications
You must be signed in to change notification settings - Fork 0
24 lines (23 loc) · 849 Bytes
/
mirror.yml
File metadata and controls
24 lines (23 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: mirror
on:
push:
branches: [main]
schedule:
# https://crontab.guru/#38_6_*_*_1,4
- cron: "38 6 * * 1,4"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install pre-commit-mirror-maker==1.10.0
# Commit as the GitHub Actions bot.
- 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=stylelint --files-regex='\.(css|scss|sass)$'
- run: |
git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/$GITHUB_REPOSITORY
git push origin HEAD:refs/heads/main --tags
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}