Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Add match-label-action (#50)
Browse files Browse the repository at this point in the history
* Add match-label-action

* Rename step id
  • Loading branch information
dwendland authored Mar 20, 2024
1 parent 8fb21f8 commit 3110907
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
java-version: '11'
java-package: jdk

- id: bump
- id: match-label
uses: zwaldowski/match-label-action@v1
with:
allowed: major,minor,patch

- uses: zwaldowski/semver-release-action@v2
with:
dry_run: true
bump: ${{ steps.bump.outputs.match }}
bump: ${{ steps.match-label.outputs.match }}
github_token: ${{ secrets.GITHUB_TOKEN }}

comment:
Expand All @@ -47,4 +47,4 @@ jobs:
uses: thollander/[email protected]
with:
message: "Please apply one of the following labels to the PR: 'patch', 'minor', 'major'."
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 7 additions & 2 deletions .github/workflows/release-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- id: match-label
uses: zwaldowski/match-label-action@v1
with:
allowed: major,minor,patch

- uses: zwaldowski/semver-release-action@v2
with:
dry_run: true
bump: ${{ steps.pr.outputs.labels }}
bump: ${{ steps.match-label.outputs.match }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Set version output
Expand Down Expand Up @@ -94,4 +99,4 @@ jobs:
prerelease: false
title: ${{ needs.generate-version.outputs.version }}
files: |
LICENSE
LICENSE

0 comments on commit 3110907

Please sign in to comment.