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: Sync to Organization Repo | |
on: | |
push: | |
branches: | |
- master # 或你使用的默认分支名 | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Push changes to organization repository | |
run: | | |
git config --global user.name 'fisheva' | |
git config --global user.email '[email protected]' | |
git remote add org_repo 'https://x-access-token:${{ secrets.ORG_ACCESS_TOKEN }}@github.com/Eva-Theme/Eva-Theme.git' | |
git push org_repo main # 确保分支名称正确 |