Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 24, 2026

The actions-build tool failed on the new setup-cli composite action, expecting a src/index.js file that composite actions don't need. The build logic assumed all non-setup actions require JavaScript bundling.

Changes

  • Added composite action detection - New isCompositeAction() helper reads action.yml to identify composite actions
  • Skip JavaScript bundling for composite actions - Updated buildAction() to bypass bundling when using: 'composite' is detected
  • Added test coverage - Tests for composite action detection and building without JavaScript sources

Example

# actions/setup-cli/action.yml
runs:
  using: 'composite'  # Now recognized - no JavaScript bundling attempted
  steps:
    - run: ${{ github.action_path }}/install.sh

Previously, the build would fail looking for actions/setup-cli/src/index.js. Now it recognizes the composite runtime and skips bundling.

Original prompt

Reference: https://github.com/githubnext/gh-aw/actions/runs/21323229483/job/61376113334#step:6:1

Debug failure


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 24, 2026 23:35
Add support for composite actions in the actions-build tool. Previously,
only the setup action had special handling, and all other actions were
expected to be node20 actions with JavaScript bundling. This caused the
build to fail for the new setup-cli composite action which only uses
shell scripts.

Changes:
- Add isCompositeAction() helper to detect composite actions
- Skip JavaScript bundling for composite actions in buildAction()
- Add comprehensive tests for composite action handling

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue causing debug failure Fix actions-build to handle composite actions Jan 24, 2026
Copilot AI requested a review from pelikhan January 24, 2026 23:43
@pelikhan pelikhan marked this pull request as ready for review January 25, 2026 00:17
@pelikhan pelikhan merged commit 1bc18eb into main Jan 25, 2026
@pelikhan pelikhan deleted the copilot/debug-failure-issue branch January 25, 2026 00:17
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.

2 participants