加个写入权限试试 #30
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: Mirror | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
mirror: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Config Git | |
run: | | |
git config --global user.email "sumneko@hotmail.com" | |
git config --global user.name "最萌小汐(宇宙创生)" | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Mirror | |
run: | | |
git remote add --mirror=push mirror https://github.com/CliCli-Editor/y3-lualib | |
git push --mirror https://x-access-token:${{secrets.MIRROR_TOKEN}}@github.com/CliCli-Editor/y3-lualib |