diff --git a/.github/workflows/check-for-release.yaml b/.github/workflows/check-for-release.yaml index a6bd713..59bd69b 100644 --- a/.github/workflows/check-for-release.yaml +++ b/.github/workflows/check-for-release.yaml @@ -36,8 +36,14 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Remove approval label + run: | + gh pr edit ${{ github.event.pull_request.number }} --remove-label "needs approval" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + post_message: - name: Post message to warn of new release + name: Post Message To Warn Of New Release runs-on: ubuntu-latest needs: check_for_release if: ${{ failure() && !contains(github.event.pull_request.labels.*.name, 'needs approval') }} @@ -62,7 +68,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.pull_request.number }} - body: "⚠️ Warning: Merging this PR will result in a new release because the `appVersion` in Chart.yaml has changed to `${{ env.appversion }}`. Please confirm this by replacing the 'needs approval' label with the 'new release' label before merging." + body: "⚠️ Warning: Merging this PR will result in a new release because the `appVersion` in Chart.yaml has changed to `${{ env.appversion }}`. Please confirm this by adding the `new release` label before merging." - name: Set a label on the pull request run: | diff --git a/test-chart/Chart.yaml b/test-chart/Chart.yaml index 18493b8..d21680a 100644 --- a/test-chart/Chart.yaml +++ b/test-chart/Chart.yaml @@ -5,6 +5,5 @@ type: application keywords: - testing - helm-chart - - template -version: 1.0.7 -appVersion: 1.0.7 +version: 1.0.8 +appVersion: 1.0.8