Weekly Dockerfile Update #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |