Skip to content

Fix root action.yml entry point path - #708

Open
Carlos Tadeu Panato Junior (cpanato) wants to merge 1 commit into
microsoft:mainfrom
cpanato:fix-root-action-entry-point
Open

Carlos Tadeu Panato Junior (cpanato) wants to merge 1 commit into
microsoft:mainfrom
cpanato:fix-root-action-entry-point

Conversation

@cpanato

Copy link
Copy Markdown

The root action.yml is a copy of who-am-i/action.yml, but its entry point is relative to who-am-i/:

runs:
  using: 'node24'
  main: '../dist/actions/who-am-i/index.js'

From who-am-i/, ../dist/… resolves to the repo's dist/ directory. From the repository root it points one level above the checkout, so a workflow using the root action (uses: microsoft/powerplatform-actions@v1) can't find its entry point.

This points the root action at dist/actions/who-am-i/index.js, where the built file lives relative to the root. It also updates the commented-out out/ path to match. No other files change.

The root action.yml is a copy of who-am-i/action.yml, but its
`main: '../dist/actions/who-am-i/index.js'` only resolves from the
who-am-i/ directory. From the repository root it points above the
checkout, so `uses: microsoft/powerplatform-actions@<ref>` can't find
its entry point. Point it at dist/actions/who-am-i/index.js, which is
where the built file lives relative to the root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant