-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 874 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Update Images
on:
push:
workflow_dispatch:
schedule:
- cron: '0 */6 * * *'
jobs:
run:
name: Update Images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
pip install -U pip
pip install -U -r requirements.txt
- name: Update Images
run: python main.py
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Commit Images
run: |
if [[ "$(git status --porcelain)" != "" ]]; then
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add .
git commit -m "Update images"
git push
fi