Update python dockerfile #46
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/[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 }} |