-
Notifications
You must be signed in to change notification settings - Fork 0
workflow: don't exit on Linux runners; set SHOULD_CONTINUE env var instead #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a86a162
c04e944
3507954
2410db3
2f28e52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,52 @@ | ||||||
| name: Copilot SWE Agent | ||||||
|
|
||||||
| on: | ||||||
| workflow_dispatch: | ||||||
| push: | ||||||
| branches: | ||||||
| - copilot/evaluate-software-stack | ||||||
|
|
||||||
| jobs: | ||||||
| copilot-agent: | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - name: Checkout code | ||||||
| uses: actions/checkout@v4 | ||||||
|
|
||||||
| - name: Determine OS and set environment | ||||||
| shell: bash | ||||||
| run: | | ||||||
| # Determine runner OS (use GitHub-provided RUNNER_OS or | ||||||
| # fallback to uname) | ||||||
| if [ -z "${RUNNER_OS:-}" ]; then | ||||||
| RUNNER_OS="$(uname -s 2>/dev/null || echo Unknown)" | ||||||
| fi | ||||||
|
|
||||||
| case "$RUNNER_OS" in | ||||||
| Linux|linux) | ||||||
|
||||||
| Linux|linux) | |
| Linux) |
Copilot
AI
Nov 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The case pattern uses wildcards (MINGW*, msys*) which work in shell case statements, but RUNNER_OS on Windows runners is always set to exactly 'Windows'. The additional patterns like MINGW*, CYGWIN*, and msys* will never match the GitHub-provided RUNNER_OS value and are unnecessary. Consider simplifying to just Windows.
| Windows|Windows_NT|MINGW*|CYGWIN*|msys*) | |
| Windows|Windows_NT) |
Copilot
AI
Nov 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The case pattern includes multiple variations (Darwin|Mac|macOS), but GitHub Actions sets RUNNER_OS to exactly 'macOS' for macOS runners. The patterns Darwin and Mac will never match the GitHub-provided RUNNER_OS value. Consider simplifying to just macOS.
| Darwin|Mac|macOS) | |
| Darwin|macOS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow trigger configuration is missing proper indentation. The
workflow_dispatchshould be on the same level aspush, but both should be properties of theonkey. Currently, this may cause the workflow to fail parsing.