Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/ministry-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:

- name: Run Ministry Router
run: |
node Ministry/Integration/index.mjs \
ROUTER_PATH="$(find . -type f -path '*/Integration/router.mjs' | head -n 1)"

if [ -z "$ROUTER_PATH" ]; then
echo "Unable to find Integration/router.mjs in the checked-out repository." >&2
echo "Either commit the Ministry bot sources to this repository, adjust the workflow to the correct path, or add a fetch step before running the router." >&2
exit 1
fi

node "$ROUTER_PATH" \
--event "$GITHUB_EVENT_NAME" \
--payload "$GITHUB_EVENT_PATH"