🐛修复 B站订阅 bug #16
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 Plugin Versions | |
on: | |
pull_request_target: | |
branches: | |
- main | |
jobs: | |
update-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Run script | |
run: | | |
git fetch origin | |
python3 update_version.py | |
- name: Commit and push changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "AkashiCoin" | |
git add . | |
git commit -m "chore: update plugin version" || echo "No changes to commit" | |
git remote set-url origin https://${{ secrets.GH_GITHUB_TOKEN }}@github.com/${{ github.event.pull_request.head.repo.full_name }}.git | |
git push origin HEAD:${{ github.event.pull_request.head.ref }} |