Skip to content

Commit dcd7c5f

Browse files
committed
chore: Allow auto-pr to include multiple changes
1 parent f17e9e7 commit dcd7c5f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/official-pr.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,24 @@ jobs:
3232
path: official-images
3333
repository: docker-library/official-images
3434

35+
- name: Track official images fork
36+
run: |
37+
cd official-images
38+
git remote add fork https://github.com/nodejs-github-bot/official-images
39+
git fetch fork
40+
git checkout -b node --track fork/node
41+
3542
- name: Generate Stackbrew for diff
3643
run: |
3744
cd docker-node
3845
./generate-stackbrew-library.sh > ../official-images/library/node
3946
47+
- name: Commit Stackbrew changes
48+
run: |
49+
cd official-images
50+
git add -A
51+
git diff-index --quiet HEAD || git commit -m "Node: ${{ github.event.pull_request.title }}" --author="${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
52+
4053
- name: Create PR in official-images
4154
id: create-pr
4255
uses: peter-evans/create-pull-request@v3
@@ -45,7 +58,6 @@ jobs:
4558
push-to-fork: nodejs-github-bot/official-images
4659
path: official-images
4760
branch: node
48-
commit-message: "Node: ${{ github.event.pull_request.title }}"
4961
title: "Node: ${{ github.event.pull_request.title }}"
5062
body: |
5163
Pull Request: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)