Skip to content

Commit 248d304

Browse files
committed
Add error handling to update-github-issue step
- Add set -e at start of run section - Add jq availability check - Fixes exit code 127 error
1 parent 6e113fd commit 248d304

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/feature-request-enhance.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,15 @@ jobs:
193193
env:
194194
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
195195
ISSUE_NUMBER: ${{ github.event.issue.number }}
196-
197196
run: |
197+
set -e # Exit on error
198+
199+
# Ensure jq is available (should be pre-installed in ubuntu-latest)
200+
if ! command -v jq &> /dev/null; then
201+
echo "⚠️ jq not found, installing..."
202+
sudo apt-get update && sudo apt-get install -y jq
203+
fi
204+
198205
# Read enhanced task from JSON output to avoid shell quoting issues
199206
TASK_JSON="${{ needs.preprocess.outputs.task_json }}"
200207
if [ -n "$TASK_JSON" ] && [ "$TASK_JSON" != "null" ]; then

0 commit comments

Comments
 (0)