diff --git a/.github/workflows/build_image.yml b/.github/workflows/build_image.yml index 47626ae..2d03943 100644 --- a/.github/workflows/build_image.yml +++ b/.github/workflows/build_image.yml @@ -150,12 +150,12 @@ jobs: sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 sudo chmod +x /usr/local/bin/yq - # update image tags in values/credit.yaml - - name: Update image tags in values/credit.yaml + # update image tags in values/credit/credit.yaml + - name: Update image tags in values/credit/credit.yaml run: | cd helm-charts - yq -i '.image.tag = "${{ github.ref_name }}"' values/credit.yaml - yq -i '.image.webTag = "${{ github.ref_name }}"' values/credit.yaml + yq -i '.image.tag = "${{ github.ref_name }}"' values/credit/credit.yaml + yq -i '.image.webTag = "${{ github.ref_name }}"' values/credit/credit.yaml # commit and push to a new branch, then open a PR for review - name: Commit, push and create PR @@ -166,13 +166,13 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git checkout -b update/credit-${{ github.ref_name }} - git add values/credit.yaml + git add values/credit/credit.yaml git commit -m "chore: update credit image tag to ${{ github.ref_name }}" git push origin update/credit-${{ github.ref_name }} HELM_REPO=$(echo "${{ vars.HELM_CHARTS_REPO }}" | sed 's/git@github.com://;s/\.git$//') gh pr create \ --repo "${HELM_REPO}" \ --title "chore: update credit image tag to ${{ github.ref_name }}" \ - --body "Automated PR: update \`values/credit.yaml\` image tags to \`${{ github.ref_name }}\` after Docker image build." \ + --body "Automated PR: update \`values/credit/credit.yaml\` image tags to \`${{ github.ref_name }}\` after Docker image build." \ --base main \ --head update/credit-${{ github.ref_name }}