Skip to content

Weekly Dockerfile Update #6

Weekly Dockerfile Update

Weekly Dockerfile Update #6

Workflow file for this run

name: Weekly Dockerfile Update
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
if git diff --cached --quiet; then
echo "No changes to commit"
else
git commit -m "chore: update Dockerfile with latest dependency versions"
git push
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}