You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add action-mode: script feature flag for bash script execution (#9763)
* Initial plan
* Initial analysis complete - planning action-mode: script feature
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Implement action-mode: script feature flag
- Add ActionModeScript constant and validation
- Update generateCheckoutActionsFolder for script mode checkout
- Create generateSetupStep helper for script vs action execution
- Add feature flag override support in compiler
- Update all setup step generation sites
- Add tests for script mode validation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Add integration test for script mode and update gitignore
- Add TestScriptActionModeCompilation integration test
- Verify script mode checkout behavior
- Verify script execution instead of action usage
- Add test files to gitignore
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Complete action-mode: script feature implementation
All tests passing for action mode script feature:
- ActionMode validation tests ✅
- Script mode integration test ✅
- Manual compilation and verification ✅
- Code formatted and validated ✅
Feature successfully implements script mode that:
- Checks out githubnext/gh-aw actions to /tmp/gh-aw/actions-source/
- Runs setup.sh script directly with INPUT_DESTINATION env var
- Works via frontmatter feature flag or CLI --action-mode=script
- Fully tested and documented
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Add action-mode: script to dev.md workflow
- Enable script mode via features.action-mode flag
- Workflow uses script mode to checkout and run setup.sh
- Already configured for staged mode safe outputs
- Posts poems to issues as comments (preview mode)
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Add shallow checkout (depth: 1) to script mode
- Add depth: 1 to script mode checkout for faster cloning
- Keep persist-credentials: false (already set)
- Update test to verify shallow checkout parameter
- Recompile dev.md workflow with shallow checkout
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Revert dev.md to use dev mode with local actions/setup
- Remove action-mode: script feature flag from dev.md
- Workflow now uses dev mode (default) with local actions/setup path
- Compiled lock file uses 'uses: ./actions/setup' instead of bash script
- Checkout uses local repository with sparse-checkout for actions folder
- Tests pass successfully
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Revert wording change: use "folder" for both dev and script modes
- Changed script mode checkout step name from "Checkout actions source" back to "Checkout actions folder"
- Both dev and script modes now use consistent "folder" naming
- No functional changes, only step name consistency
- Tests pass successfully
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
0 commit comments