Skip to content

Dockerfile Updater #39293

Dockerfile Updater

Dockerfile Updater #39293

Workflow file for this run

name: Dockerfile Updater
on:
workflow_dispatch:
schedule:
# Runs every half hour
- cron: "*/30 * * * *"
jobs:
update_dockerfile:
permissions:
contents: write
pull-requests: write
if: startsWith(github.repository, 'adoptium/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
with:
persist-credentials: false
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: "3.x"
- name: Install dependencies
run: "pip3 install -r requirements.txt"
- name: Run updater
run: "python3 generate_dockerfiles.py"
- uses: gr2m/create-or-update-pull-request-action@73b5860c078571041abd2e438b8377a24dbc2465 # v1
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]>"