Skip to content

Update: Fix

Update: Fix #5

name: Transfer Images
on:
push:
branches:
- main
jobs:
image_transfer:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- 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: Commit and Push changes
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}