diff --git a/.github/workflows/official-pr.yml b/.github/workflows/official-pr.yml index e9af41d165..7aa88ca123 100644 --- a/.github/workflows/official-pr.yml +++ b/.github/workflows/official-pr.yml @@ -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 @@ -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 }}