From 311090704105239aafea989fbb73d4f508d69dd0 Mon Sep 17 00:00:00 2001 From: Dennis Wendland <72455939+dwendland@users.noreply.github.com> Date: Wed, 20 Mar 2024 08:45:55 +0100 Subject: [PATCH] Add match-label-action (#50) * Add match-label-action * Rename step id --- .github/workflows/check.yaml | 6 +++--- .github/workflows/release-helm.yaml | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index dfa0106..b6cf2e7 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -23,7 +23,7 @@ jobs: java-version: '11' java-package: jdk - - id: bump + - id: match-label uses: zwaldowski/match-label-action@v1 with: allowed: major,minor,patch @@ -31,7 +31,7 @@ jobs: - 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: @@ -47,4 +47,4 @@ jobs: uses: thollander/actions-comment-pull-request@1.0.2 with: message: "Please apply one of the following labels to the PR: 'patch', 'minor', 'major'." - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-helm.yaml b/.github/workflows/release-helm.yaml index 3e507d7..20fb92b 100644 --- a/.github/workflows/release-helm.yaml +++ b/.github/workflows/release-helm.yaml @@ -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 @@ -94,4 +99,4 @@ jobs: prerelease: false title: ${{ needs.generate-version.outputs.version }} files: | - LICENSE \ No newline at end of file + LICENSE