Commit a5e3188
Consolidate safe-outputs into single job with file-based JavaScript bundling (#6806)
* Initial plan
* Initial plan for consolidating safe-outputs into single job
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
* Implement consolidated safe-outputs job to combine all safe output operations into a single job
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
* Add consolidated safe-outputs mode with flag to enable single job architecture
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
* Make consolidated safe-outputs the default and only mode, cleanup individual job code
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Fix PR draft env var and update more tests for consolidated mode
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Continue updating tests for consolidated safe-outputs mode
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Update push_to_pull_request_branch tests for consolidated mode
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Make consolidated safe-outputs the default mode and update tests
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Continue migrating tests to consolidated safe-outputs mode
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Fix more tests for consolidated safe-outputs mode - down to 10 failures
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Fix more tests for consolidated safe-outputs mode - down to 6 failures
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Complete migration of all tests to consolidated safe-outputs mode
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Merge main and add pinned actions comment to generated YAML
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Merge main, fix JavaScript bundler to handle inline conditional module.exports patterns
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Add file-based bundling mode for GitHub Script steps to maximize helper reuse
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Merge main, format code, and recompile all workflows
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Fix nodejs bundler mode to not inline files - use require() for local modules
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Use local relative paths (./...) for require in nodejs mode instead of absolute paths
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Merge main, format code, and recompile all 116 workflows
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* merge main
* Refactor mockGraphqlResponse setup in add_comment tests for improved readability
* Remove unused individual job builder functions (dead code cleanup)
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Refactor mockGraphqlResponse setup in add_comment tests for improved readability and update terser command for better output handling
* Fix safe_outputs job condition to check detection.outputs.success == 'true'
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Fix top-level await support by wrapping require() in async IIFE
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Patch top-level await in .cjs files written to disk for safe_outputs job
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Inline top-level scripts instead of using require() for GitHub Script steps
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Expose github-script globals (github, context, core, exec, io) on globalThis for required modules
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: Mossaka <5447827+Mossaka@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>1 parent 3067bd8 commit a5e3188
158 files changed
Lines changed: 195620 additions & 156304 deletions
File tree
- .github/workflows
- pkg/workflow
- js
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments