Skip to content

Commit

Permalink
fix: check that required arguments are set (#8)
Browse files Browse the repository at this point in the history
Fixes MRGFY-3942
  • Loading branch information
DouglasBlackwood authored Sep 3, 2024
1 parent 1810f19 commit 6f216d9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ runs:
run: |
set -x
# Check if FILES and MERGIFY_CI_ISSUES_TOKEN are set and not empty
if [ -z "$FILES" ]; then
echo "::error:: report_paths is not set or is empty"
exit 1
fi
if [ -z "$MERGIFY_CI_ISSUES_TOKEN" ]; then
echo "::error:: token is not set or is empty"
exit 1
fi
# TODO(sileht): support multiple files
curl -X POST \
-H "Authorization: bearer ${MERGIFY_CI_ISSUES_TOKEN}" \
Expand Down

0 comments on commit 6f216d9

Please sign in to comment.