Skip to content

Commit e0bd00d

Browse files
authored
Merge pull request #4 from jamdotdev/rui/chore/release-workflow
fix: grep usage to read PR tags
2 parents d724aed + 24af4e1 commit e0bd00d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
id: version-type
2020
run: |
2121
LABELS="${{ toJson(github.event.pull_request.labels.*.name) }}"
22-
if echo "$LABELS" | grep -q '"release-major"'; then
22+
if echo "$LABELS" | grep -q 'release-major'; then
2323
echo "type=major" >> $GITHUB_OUTPUT
24-
elif echo "$LABELS" | grep -q '"release-minor"'; then
24+
elif echo "$LABELS" | grep -q 'release-minor'; then
2525
echo "type=minor" >> $GITHUB_OUTPUT
26-
elif echo "$LABELS" | grep -q '"release-patch"'; then
26+
elif echo "$LABELS" | grep -q 'release-patch'; then
2727
echo "type=patch" >> $GITHUB_OUTPUT
2828
else
2929
echo "::error::No valid release label found (release-major, release-minor, release-patch)."

0 commit comments

Comments
 (0)