Skip to content

Commit

Permalink
Update: Add GitHub Action commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Aicnal committed Nov 28, 2024
1 parent 16abb5a commit 656fc80
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/image-transfer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false # 禁用默认的 GITHUB_TOKEN

- name: Set up Python
uses: actions/setup-python@v3
Expand All @@ -25,4 +27,17 @@ jobs:
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
UPLOAD_URL: ${{ secrets.UPLOAD_URL }}
run: python transform.py
run: python transform.py

- name: Configure Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Commit and push changes
run: |
git add .
git commit -m "Update image links"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

1 comment on commit 656fc80

@vercel
Copy link

@vercel vercel bot commented on 656fc80 Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.