From 62a8eac187953cf404f530018ff6500304df1500 Mon Sep 17 00:00:00 2001 From: pawelirh Date: Thu, 25 Apr 2024 14:02:59 +0200 Subject: [PATCH] Use action for commiting --- .github/workflows/release-repository.yaml | 26 +++++++++++++++-------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-repository.yaml b/.github/workflows/release-repository.yaml index 8628e9c..221af7d 100644 --- a/.github/workflows/release-repository.yaml +++ b/.github/workflows/release-repository.yaml @@ -35,21 +35,29 @@ jobs: with: ref: ${{ github.event.inputs.target_branch }} - - name: Create release branch - run: | - git checkout -b $RELEASE_BRANCH - git push -u origin $RELEASE_BRANCH + # - name: Create release branch + # run: | + # git checkout -b $RELEASE_BRANCH + # git push -u origin $RELEASE_BRANCH - name: Update docker image version uses: mikefarah/yq@v4.43.1 with: cmd: yq -i '.services.panther_ros.image = "new_tag"' demo/compose.minimal-setup.yaml - - name: Commit changes - run: | - git add . - git commit -m "Update docker image version" - git push origin $RELEASE_BRANCH + # - name: Commit changes + # run: | + # git add . + # git commit -m "Update docker image version" + # git push origin $RELEASE_BRANCH + + - name: Commit changes to release branch + uses: EndBug/add-and-commit@v9 + with: + message: Update docker image version + author_name: action-bot + author_email: action-bot@action-bot.com + new_branch: $RELEASE_BRANCH - name: Create pull request run: |