Skip to content
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

Error during cloning powerplatform actions internally #239

Closed
amenaafreenn opened this issue Aug 31, 2022 · 3 comments
Closed

Error during cloning powerplatform actions internally #239

amenaafreenn opened this issue Aug 31, 2022 · 3 comments
Labels
wontfix This will not be worked on

Comments

@amenaafreenn
Copy link

Hi Team,

We are facing the below issue as file not found error

org/[email protected]

RUNNER_DEBUG: 1

Error: File not found: 'D:\actions-runner-prd_work_actions\albertsons\esgh-powerplatform\v0.7.1../dist/actions/who-am-i/index.js'
##[debug]System.IO.FileNotFoundException: File not found: 'D:\actions-runner-prd_work_actions\albertsons\esgh-powerplatform\v0.7.1../dist/actions/who-am-i/index.js'
##[debug]File name: 'D:\actions-runner-prd_work_actions\albertsons\esgh-powerplatform\v0.7.1../dist/actions/who-am-i/index.js'
##[debug] at GitHub.Runner.Sdk.ArgUtil.File(String fileName, String name)
##[debug] at GitHub.Runner.Worker.Handlers.NodeScriptActionHandler.RunAsync(ActionRunStage stage)
##[debug] at GitHub.Runner.Worker.ActionRunner.RunAsync()
##[debug] at GitHub.Runner.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken)
##[debug]Finishing: export-solution action

Can you please help us here?

The location that it is showing is different powerplatform\v0.7.1../dist/actions/who-am-i/index.js'

We looked in the runner and we see that the file is available in the below location

powerplatform\v0.7.1\dist\actions\who-am-i\index.js'

@davidjenni davidjenni added the wontfix This will not be worked on label Sep 13, 2022
@davidjenni
Copy link
Member

@amenaafreenn you are running our GH Actions from your own, forked repository.

##[debug]File name: 'D:\actions-runner-prd_work_actions\**albertsons\esgh-powerplatform**\v0.7.1../dist/actions/who-am-i/index.js'

Your log shows you're running the actions from a forked repo; when referencing our action from this repo (from any other repo), the log looks different:

 ##[debug]command: /home/runner/work/_actions/**microsoft/powerplatform-actions**/v0/dist/pac_linux/tools/pac, first arg of 10: auth

While this technically possible to do, it is not our best practice and we cannot support our GH Actions that reside in your forked repository. Please reference our GH Actions directly from this repo, as demonstrated in the readme and the lab sample repos:

    steps:
    - name: Are we connected
      uses: microsoft/powerplatform-actions/who-am-i@v0

CC: @kkanakas

@aafre01
Copy link

aafre01 commented Mar 11, 2024

Hi @davidjenni,
David JENNI
davidjenni

We are using this action from enterprise GitHub and facing this issue again.
Can you please provide a way to use these actions while we fork it in our enterprise repo, as you mentioned it's possible to do so in your comment.

#[debug]Loading env
Run albertsons/[email protected]
Error: File not found: 'D:\actions-runner-06_work_actions\albertsons\esgh-powerplatform\v1.3.0../dist/actions/who-am-i/index.js'
##[debug]System.IO.FileNotFoundException: File not found: 'D:\actions-runner-06_work_actions\albertsons\esgh-powerplatform\v1.3.0../dist/actions/who-am-i/index.js'
##[debug]File name: 'D:\actions-runner-06_work_actions\albertsons\esgh-powerplatform\v1.3.0../dist/actions/who-am-i/index.js'

@aafre01
Copy link

aafre01 commented Mar 11, 2024

Please see #524

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants