Skip to content

Commit

Permalink
1.0.8 (#18)
Browse files Browse the repository at this point in the history
* test 1.0.5 release message

* change not version

* make workflow not always write a message

* fix workflow

* fix ref

* try it with label

* test no release change

* debug label issue

* fix label names

* change the warn message

* remove debug

* fix dependency

* change something that is not the version

* test new workflow

* test to 1.0.7

* revert to 1.0.5

* 1.0.6

* 1.0.7

* revert

* 1.0.6

* test

* test condition workaround

* revert version to 1.0.7

* make 1.0.8 again

* change message

* syntax

* made non version change
  • Loading branch information
JTaeuber authored Sep 13, 2024
1 parent dc11523 commit 55031d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/check-for-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand All @@ -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: |
Expand Down
5 changes: 2 additions & 3 deletions test-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 55031d0

Please sign in to comment.