Skip to content

Commit

Permalink
Adding CRON for python update (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartorn authored Sep 30, 2024
1 parent e4daadb commit d4d8130
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/update-dockerfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Update python dockerfile

on:
schedule:
- cron: '0 4 * * *' # Run every day at 4 AM UTC
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
with:
ref: main

- name: Try to update dockerfile
working-directory: /python
run: |
bash generate_dockerfile.sh
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
commit-message: Updating to latest python version
add-paths: |
python/Dockerfile
branch: cron-python-update
title: Updating to latest python version
assignees: Hartorn
token: ${{ secrets.DOCKER_PYTHON_PR_TOKEN }}
1 change: 0 additions & 1 deletion python/generate_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ FOLDER=$(readlink -f "${BASH_SOURCE[0]}" | xargs dirname)
DEBIAN_VERSION="bookworm"
DEBIAN_VARIANT="slim"

POETRY_VERSION="1.1.5"

function install_python() {
output_file=$1
Expand Down

0 comments on commit d4d8130

Please sign in to comment.