Skip to content

Commit

Permalink
Make auto-label semver action fail if there are no patchfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ForestEckhardt authored and robdimsdale committed Jun 6, 2024
1 parent 89d04c2 commit 42d7d97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function main() {
if [ "${safe}" -eq "0" ]; then
echo "Files changed that aren't on the patch allowlist"
echo "label=" >> "$GITHUB_OUTPUT"
exit 0
exit 1
fi
done < <(gh api /repos/"${repo}"/pulls/"${number}"/files --jq '.[].filename')

Expand Down

0 comments on commit 42d7d97

Please sign in to comment.