Skip to content

Commit 101d07f

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/official-pr.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,19 @@ jobs:
3131
with:
3232
path: official-images
3333
repository: docker-library/official-images
34+
ref: 'node'
3435

3536
- name: Generate Stackbrew for diff
3637
run: |
3738
cd docker-node
3839
./generate-stackbrew-library.sh > ../official-images/library/node
3940
41+
- name: Commit changes
42+
run: |
43+
cd official-images
44+
git add -A
45+
git diff-index --quiet HEAD || git commit -m "Node: ${{ github.event.pull_request.title }}" --author="${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
46+
4047
- name: Create PR in official-images
4148
id: create-pr
4249
uses: peter-evans/create-pull-request@v3
@@ -45,7 +52,6 @@ jobs:
4552
push-to-fork: nodejs-github-bot/official-images
4653
path: official-images
4754
branch: node
48-
commit-message: "Node: ${{ github.event.pull_request.title }}"
4955
title: "Node: ${{ github.event.pull_request.title }}"
5056
body: |
5157
Pull Request: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)