From b403a8ea8d6a36ad87d301d48da3c3d98e5b24fe Mon Sep 17 00:00:00 2001 From: Eli Holmes - NOAA Date: Thu, 14 Nov 2024 13:32:37 -0800 Subject: [PATCH] Update update-pangeo-dockerfile.yml --- .../workflows/update-pangeo-dockerfile.yml | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/update-pangeo-dockerfile.yml b/.github/workflows/update-pangeo-dockerfile.yml index 261e5be..610ca3a 100644 --- a/.github/workflows/update-pangeo-dockerfile.yml +++ b/.github/workflows/update-pangeo-dockerfile.yml @@ -47,23 +47,20 @@ jobs: sed '/ENTRYPOINT/d' base-image/Dockerfile.new > base-image/Dockerfile rm base-image/Dockerfile.new - - name: Commit and Push Changes - if: env.changed == 'true' - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git checkout -b update-dockerfile - git add base-image/Dockerfile - git commit -m "Update Dockerfile from pangeo github" - git push origin update-dockerfile --force - - name: Create Pull Request if: env.changed == 'true' uses: peter-evans/create-pull-request@v7 with: - title: "Update Dockerfile from Source" - body: "This PR updates the Dockerfile in base-image directory to the latest version from the source repo." - base: ${{ github.ref }} # Base branch (main or dev) - branch: "update-dockerfile" - reviewers: | - eeholmes + commit-message: Update base-image Dockerfile + committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> + branch: update-dockerfile + delete-branch: true + title: 'Update Dockerfile' + body: | + Update Pangeo base-image Dockerfile + - Auto-generated by [create-pull-request][1] + [1]: https://github.com/peter-evans/create-pull-request + assignees: eeholmes + reviewers: eeholmes + draft: false +