iCloud 云盘同步卡住的解决方法 #1
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: Update README | |
on: | |
issues: | |
types: [opened, deleted] | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm install | |
- name: Configure git | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
- name: Pull latest changes | |
run: git pull origin main | |
- name: Run update script | |
env: | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW_GITHUB_TOKEN }} | |
run: node scripts/update-readme.js | |
- name: Commit changes | |
env: | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW_GITHUB_TOKEN }} | |
run: | | |
git add README.md | |
git commit -m "docs: update readme" | |
git push origin main |