-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 924 Bytes
/
updater.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
37
38
name: Update Dockerfile
on:
schedule:
- cron: '0 7 * * SAT'
workflow_dispatch:
jobs:
update-dockerfile:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install requests
- name: Run update script
run: python update_dockerfile.py
- name: Commit and push changes
if: success()
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add Dockerfile
git commit -m 'Update Dockerfile with latest versions'
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}