Update python dockerfile #112
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: Update python dockerfile | |
on: | |
schedule: | |
- cron: '0 4 * * *' # Run every day at 4 AM UTC | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: main | |
- name: Try to update dockerfile | |
working-directory: python | |
run: | | |
bash generate_dockerfile.sh | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6 | |
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 }} |