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

Add match-label-action #50

Merged
merged 2 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading