feat: Node.js 18.20.5, 23.2.0 #308
Workflow file for this run
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: Create official images PR | |
on: | |
pull_request_target: | |
types: | |
- closed | |
paths: | |
- ".github/workflows/official-pr.yml" | |
- "**/Dockerfile" | |
- "**/docker-entrypoint.sh" | |
- "versions.json" | |
- "stackbrew.js" | |
jobs: | |
pr: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'nodejs' && github.event.pull_request.merged_by != '' | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Checkout the docker-node repo | |
uses: actions/checkout@v4 | |
with: | |
path: docker-node | |
ref: ${{ github.base_ref }} | |
fetch-depth: 50 | |
- name: Checkout the official-images repo | |
uses: actions/checkout@v4 | |
with: | |
path: official-images | |
repository: docker-library/official-images | |
- name: Generate Stackbrew for diff | |
run: | | |
cd docker-node | |
./stackbrew.js > ../official-images/library/node | |
- name: Create PR in official-images | |
id: create-pr | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.GH_API_TOKEN }} | |
push-to-fork: nodejs/official-images | |
path: official-images | |
branch: node | |
commit-message: "Node: ${{ github.event.pull_request.title }}" | |
title: "Node: ${{ github.event.pull_request.title }}" | |
body: | | |
Pull Request: ${{ github.event.pull_request.html_url }} | |
@LaurentGoderre @PeterDaveHello @SimenB @Starefossen @nschonni @ttshivers | |
- name: PR details | |
run: | | |
echo "Pull Request Number - ${{ steps.create-pr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.create-pr.outputs.pull-request-url }}" | |
- name: Create PR comment | |
uses: peter-evans/create-or-update-comment@v4 | |
if: ${{ steps.create-pr.outputs.pull-request-url != '' }} | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
Created PR on the official-images repo (${{ steps.create-pr.outputs.pull-request-url }}). See https://github.com/docker-library/faq#an-images-source-changed-in-git-now-what if you are wondering when it will be available on the Docker Hub. | |
- name: Dump context | |
if: always() | |
uses: crazy-max/ghaction-dump-context@v2 |