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

Commit

Permalink
Cleanup (#83)
Browse files Browse the repository at this point in the history
* Bump: Fix labels

* Cleanup release action
  • Loading branch information
dwendland committed Jul 5, 2024
1 parent 5a99668 commit 3aeeec8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,21 @@ jobs:
${{ steps.pr.outputs.labels }}
END
)
echo "Outputs"
echo "${{ steps.pr.outputs.title }}"
echo "Run with labels"
echo "$LABELS"
IFS='\n' read -ra LABEL <<< "$LABELS"
for i in "${LABEL[@]}"; do
echo $i
case $i in
# Will just use the first occurence
'major'|'minor'|'patch')
echo "::set-output name=release-label::$i"
echo "RELEASE_LABEL=$i" >> $GITHUB_OUTPUT
break
esac
done
- uses: zwaldowski/semver-release-action@v2
with:
dry_run: true
bump: ${{ steps.match-label-bash.outputs.release-label }}
bump: ${{ steps.match-label-bash.outputs.RELEASE_LABEL }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Set version output
Expand Down

0 comments on commit 3aeeec8

Please sign in to comment.