Skip to content

Fix trigger-ci-workflows exit code on dispatch failures - #2128

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
fix-trigger-ci-workflows-exit-code-d6b9e476af6469c3
Draft

github-actions[bot] wants to merge 1 commit into
mainfrom
fix-trigger-ci-workflows-exit-code-d6b9e476af6469c3

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

  • fix scripts/trigger-ci-workflows.sh so dispatch results are counted in the parent shell
  • increment failed on each gh workflow run failure and succeeded on success
  • return a non-zero exit code when any dispatch fails, preventing false-success automation

Closes #2127.

Validation

PATH="/tmp/gh-aw/agent/ghshim:$PATH" bash scripts/trigger-ci-workflows.sh detectors
bash scripts/trigger-ci-workflows.sh --list detectors
bash scripts/trigger-ci-workflows.sh --dry-run detectors
make lint

What is this? | From workflow: Trigger Bug Hunter

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Ensure scripts/trigger-ci-workflows.sh increments failure counts and exits non-zero when any workflow dispatch fails.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug-hunter] trigger-ci-workflows exits 0 even when workflow dispatches fail

0 participants