From 0e30ba6556337c489a6fdca72999d86622b9f4b9 Mon Sep 17 00:00:00 2001 From: Laszlo Uveges Date: Tue, 16 Dec 2025 16:26:12 +0100 Subject: [PATCH 1/2] Make create-release-pr aware of ABS setting .replace-app-version-with-git and update Chart.yaml accordingly --- .github/workflows/create-release-pr.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/create-release-pr.yaml b/.github/workflows/create-release-pr.yaml index e7360b0..2bf1df4 100644 --- a/.github/workflows/create-release-pr.yaml +++ b/.github/workflows/create-release-pr.yaml @@ -225,6 +225,14 @@ jobs: if [ $(grep -c "^version:.*\.Version.*$" "${chart_yaml}") = "0" ]; then yq -i '.version = "${{ needs.gather_facts.outputs.version }}"' "${chart_yaml}" fi + + # Check if ABS is configured for the project. + if [ -f ".abs/main.yaml" ]; then + # Check if replace-app-version-with-git is enabled in ABS config. + if [ "$(yq '.replace-app-version-with-git' '.abs/main.yaml')" = "true" ]; then + yq -i '.appVersion = "${{ needs.gather_facts.outputs.version }}"' "${chart_yaml}" + fi + fi fi - name: Bump go module defined in go.mod if needed From af154aa8bf3841a4d6cb106695cd0b8640e3bfa7 Mon Sep 17 00:00:00 2001 From: Laszlo Uveges Date: Tue, 16 Dec 2025 16:32:01 +0100 Subject: [PATCH 2/2] Make static checks happy --- .github/workflows/create-release-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release-pr.yaml b/.github/workflows/create-release-pr.yaml index 2bf1df4..8cda858 100644 --- a/.github/workflows/create-release-pr.yaml +++ b/.github/workflows/create-release-pr.yaml @@ -225,7 +225,7 @@ jobs: if [ $(grep -c "^version:.*\.Version.*$" "${chart_yaml}") = "0" ]; then yq -i '.version = "${{ needs.gather_facts.outputs.version }}"' "${chart_yaml}" fi - + # Check if ABS is configured for the project. if [ -f ".abs/main.yaml" ]; then # Check if replace-app-version-with-git is enabled in ABS config.