From 8f42cfea775b6b2e6ca0cf32f9f8383fbcbf2a6b Mon Sep 17 00:00:00 2001 From: Ivan Vasilov Date: Mon, 5 Aug 2024 12:47:04 +0200 Subject: [PATCH] Another try at fixing the action. --- .github/workflows/publish_image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_image.yml b/.github/workflows/publish_image.yml index 414e24d4178..05cc31985f9 100644 --- a/.github/workflows/publish_image.yml +++ b/.github/workflows/publish_image.yml @@ -168,12 +168,13 @@ jobs: - name: Create a new branch run: | cd '${{ env.cli_repo }}' + git checkout '${{ env.cli_repo_main_branch }}' git checkout -b '${{ env.service_to_update }}/${{ needs.settings.outputs.image_version }}' - name: Update file run: | cd '${{ env.cli_repo }}' - sed -i 's/${{ env.cli_repo_owner }}\/${{ env.service_to_update }}:.*/${{ env.cli_repo_owner }}\/${{ env.service_to_update }}:${{ needs.settings.outputs.image_version }}"/' internal/utils/misc.go + sed -i 's/${{ env.cli_repo_owner }}\/${{ env.service_to_update }}:.*/${{ env.cli_repo_owner }}\/${{ env.service_to_update }}:${{ needs.settings.outputs.image_version }}"/' pkg/config/constants.go - name: Commit changes run: |