Skip to content

Commit

Permalink
chore: Allow auto-pr to include multiple changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Oct 9, 2020
1 parent f17e9e7 commit 101d07f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/official-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,19 @@ jobs:
with:
path: official-images
repository: docker-library/official-images
ref: 'node'

- name: Generate Stackbrew for diff
run: |
cd docker-node
./generate-stackbrew-library.sh > ../official-images/library/node
- name: Commit changes
run: |
cd official-images
git add -A
git diff-index --quiet HEAD || git commit -m "Node: ${{ github.event.pull_request.title }}" --author="${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
- name: Create PR in official-images
id: create-pr
uses: peter-evans/create-pull-request@v3
Expand All @@ -45,7 +52,6 @@ jobs:
push-to-fork: nodejs-github-bot/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 }}
Expand Down

0 comments on commit 101d07f

Please sign in to comment.