diff --git a/.github/workflows/release-helm.yaml b/.github/workflows/release-helm.yaml index 57af897..5dbb2f9 100644 --- a/.github/workflows/release-helm.yaml +++ b/.github/workflows/release-helm.yaml @@ -26,15 +26,24 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} - - id: match-label - uses: zwaldowski/match-label-action@v1 - with: - allowed: major, minor, patch - + - name: Match semver label via bash + id: match-label-bash + run: | + LABELS=${{ steps.pr.outputs.labels }} + IFS='\n' read -ra LABEL <<< "$LABELS" + for i in "${LABEL[@]}"; do + case $i in + # Will just use the first occurence + 'major'|'minor'|'patch') + echo "RELEASE_LABEL=$i" >> $GITHUB_OUTPUT + break + esac + done + - uses: zwaldowski/semver-release-action@v2 with: dry_run: true - bump: ${{ steps.match-label.outputs.match }} + bump: ${{ steps.match-label-bash.outputs.RELEASE_LABEL }} github_token: ${{ secrets.GITHUB_TOKEN }} - name: Set version output