Skip to content

new Feature: 计算机网络入门 #7

new Feature: 计算机网络入门

new Feature: 计算机网络入门 #7

name: Transfer Images
on:
push:
paths:
- 'docs/**/*.md'
jobs:
image_transfer:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: pip install requests
- name: Run image transfer script
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
UPLOAD_URL: ${{ secrets.UPLOAD_URL }}
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 }}