Dockerfile Updater #45530
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: Dockerfile Updater | |
on: | |
workflow_dispatch: | |
schedule: | |
# Runs every half hour | |
- cron: "*/30 * * * *" | |
permissions: read-all | |
jobs: | |
update_dockerfile: | |
permissions: | |
contents: write | |
pull-requests: write | |
if: startsWith(github.repository, 'adoptium/') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: "pip3 install -r requirements.txt" | |
- name: Run updater | |
run: "python3 generate_dockerfiles.py --force" | |
- uses: gr2m/create-or-update-pull-request-action@86ec1766034c8173518f61d2075cc2a173fb8c97 # v1.9.4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.ADOPTIUM_TEMURIN_BOT_TOKEN }} | |
with: | |
title: "Update Dockerfiles" | |
body: "This is an automatically generated pull request, it will be automatically merged if all the CI tests pass." | |
branch: "dockerfile_bot" | |
commit-message: "dockerfile: automated nightly updates" | |
labels: automerge | |
author: "eclipse-temurin-bot <[email protected]>" |