Skip to content

Commit

Permalink
Merge pull request #78 from KirisameMarisa/fixed_label_check_flow
Browse files Browse the repository at this point in the history
if major, minor and patch are not at head, the build failed
  • Loading branch information
KirisameMarisa authored Jan 6, 2024
2 parents 30c5ff7 + f49fa39 commit 341a6ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/version-label-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
"https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/labels" \
| jq -r '.[].name')
if [[ ! "$LABELS" =~ ^(minor|major|patch)$ ]]; then
if [[ ! "$LABELS" =~ (minor|major|patch) ]]; then
echo "Error: A version label (minor, major, or patch) is required for merging this PR."
exit 1
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 341a6ef

Please sign in to comment.