@@ -30,37 +30,12 @@ jobs:
3030 detect :
3131 runs-on : ubuntu-24.04
3232 outputs :
33- skip : ${{ steps.check .outputs.skip_release }}
34- chart_version : ${{ steps.check .outputs.chart_version }}
35- app_version_bumped : ${{ steps.check .outputs.app_version_bumped }}
33+ skip : ${{ steps.detect .outputs.chart_release_exists }}
34+ chart_version : ${{ steps.detect .outputs.chart_version }}
35+ app_version_bumped : ${{ steps.detect .outputs.app_release_exists == 'false' }}
3636 steps :
37- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
38- with :
39- fetch-depth : 0
40-
41- - name : Check version bump
42- id : check
43- env :
44- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45- run : |
46- chart_version=$(yq .version "$CHART_DIR/Chart.yaml")
47- app_version=$(yq .appVersion "$CHART_DIR/Chart.yaml")
48- echo "chart_version=$chart_version" >> "$GITHUB_OUTPUT"
49-
50- if gh release view "helm-v$chart_version" > /dev/null 2>&1; then
51- echo "Release helm-v$chart_version already exists. Skipping."
52- echo "skip_release=true" >> "$GITHUB_OUTPUT"
53- exit 0
54- fi
55-
56- echo "skip_release=false" >> "$GITHUB_OUTPUT"
57-
58- if gh release view "$app_version" > /dev/null 2>&1; then
59- echo "app_version_bumped=false" >> "$GITHUB_OUTPUT"
60- else
61- echo "Release $app_version has changed. Leaving E2E tests to release-app action."
62- echo "app_version_bumped=true" >> "$GITHUB_OUTPUT"
63- fi
37+ - id : detect
38+ uses : ./.github/actions/detect-versions
6439
6540 # The E2E tests are run when the chart version is bumped, but will be skipped if the appVersion
6641 # has been bumped as well. The release-app action will then run the E2E tests instead.
0 commit comments