diff --git a/.github/workflows/publish_image.yml b/.github/workflows/publish_image.yml index 2a6c68c1f08..cbc2e496428 100644 --- a/.github/workflows/publish_image.yml +++ b/.github/workflows/publish_image.yml @@ -164,29 +164,29 @@ jobs: - name: Create a new branch run: | - cd '${{ env.cli_repo }}' - git checkout '${{ env.cli_repo_main_branch }}' + 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 }}' + 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 }}"/' pkg/config/constants.go - name: Commit changes run: | - cd '${{ env.cli_repo }}' + cd ${{ env.cli_repo }} git add . git commit -m "chore: Update ${{ env.service_to_update }} version to ${{ needs.settings.outputs.image_version }}" - name: Push changes run: | - cd '${{ env.cli_repo }}' + cd ${{ env.cli_repo }} git push origin '${{ env.service_to_update }}/${{ needs.settings.outputs.image_version }}' - name: Create Pull Request run: | - cd '${{ env.cli_repo }}' + cd ${{ env.cli_repo }} gh pr create --base '${{ env.cli_repo_main_branch }}' --title "${{ env.cli_repo_pr_title }} ${{ needs.settings.outputs.image_version }}" --body "Updates service ${{ env.service_to_update }} new version to ${{ needs.settings.outputs.image_version }}" env: GH_TOKEN: ${{ secrets.USER_ACCESS_TOKEN }}