Automatically update Docker image versions #90471
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: Automatically update Docker image versions | |
on: | |
schedule: | |
- cron: "*/15 * * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'nodejs' | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run automation script | |
uses: actions/github-script@v7 | |
id: updt | |
with: | |
result-encoding: string | |
script: | | |
const { default: script } = await import(`${process.env.GITHUB_WORKSPACE}/build-automation.mjs`); | |
return script(github); | |
- name: Create update PR | |
id: cpr | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.GH_API_TOKEN }} | |
author: "Node.js GitHub Bot <[email protected]>" | |
branch: update-branch | |
base: main | |
commit-message: "feat: Node.js ${{ steps.updt.outputs.result }}" | |
title: "feat: Node.js ${{ steps.updt.outputs.result }}" | |
delete-branch: true | |
team-reviewers: | | |
nodejs/docker |