Skip to content

Commit 3a1e543

Browse files
committed
Fix update-github-issue step: add error handling and jq check
- Add 'if: needs.preprocess.outcome == success' condition - Add set -e for error handling - Add jq availability check (should be pre-installed but verify) - Fixes exit code 127 error in workflow run
1 parent b346e27 commit 3a1e543

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ jobs:
190190
update-github-issue:
191191
runs-on: ubuntu-latest
192192
needs: preprocess
193+
if: needs.preprocess.outcome == 'success'
193194
permissions:
194195
contents: read
195196
issues: write
@@ -198,6 +199,15 @@ jobs:
198199
env:
199200
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
200201
ISSUE_NUMBER: ${{ github.event.issue.number }}
202+
set -e # Exit on error
203+
204+
# Ensure jq is available (should be pre-installed in ubuntu-latest)
205+
if ! command -v jq &> /dev/null; then
206+
echo "⚠️ jq not found, installing..."
207+
sudo apt-get update && sudo apt-get install -y jq
208+
fi
209+
210+
201211
run: |
202212
# Read enhanced task from JSON output to avoid shell quoting issues
203213
TASK_JSON="${{ needs.preprocess.outputs.task_json }}"

0 commit comments

Comments
 (0)