Skip to content

Commit 44a453a

Browse files
committed
👷 chore: update workflow to use shigure nyako
1 parent 52a974a commit 44a453a

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/mirror.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
workflow_dispatch:
66
schedule:
77
- cron: "0 12 * * *"
8+
89
jobs:
910
build:
1011
permissions:
@@ -13,23 +14,29 @@ jobs:
1314
runs-on: ubuntu-latest
1415
steps:
1516
- name: Checkout
16-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
18+
with:
19+
persist-credentials: false
20+
1721
- name: Install uv
18-
uses: astral-sh/setup-uv@v5
22+
uses: astral-sh/setup-uv@v7
23+
1924
- name: Install python
20-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@v6
2126
with:
22-
python-version: "3.13"
27+
python-version: "3.14"
28+
2329
- name: Setup git
2430
run: |
25-
git config --global user.name 'Github Actions'
26-
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
31+
git config --global user.name 'Nyako Shigure'
32+
git config --global user.email '[email protected]'
33+
2734
- name: Run mirror
2835
run: |
2936
uv run --script mirror.py
37+
3038
- name: Push changes
3139
run: |
32-
git remote set-url origin https://x-access-token:[email protected]/$GITHUB_REPOSITORY
33-
git push origin HEAD:refs/heads/main --tags
40+
git push https://[email protected]/$GITHUB_REPOSITORY HEAD:refs/heads/main --tags
3441
env:
35-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
GH_TOKEN: ${{ secrets.PRE_COMMIT_HOOK_AUTO_UPDATE_TOKEN }}

0 commit comments

Comments
 (0)