microsoft/powerplatform-actions

error: Error: spawn D:\a\_actions\microsoft\powerplatform-actions\v0\dist\pac\tools\pac.exe ENOENT

Joseph-Duty-VA opened this issue · 1 comments

When trying to run a export-solution action, i get the error listed above a couple times before the workflow ends.
Here's my setup:
jobs:
build:

  runs-on: windows-latest   # alternate runner OS is: ubuntu-latest

  steps:      
  - uses: actions/checkout@v2
    with:
      lfs: true
    
  - name: Export Solution
    uses: microsoft/powerplatform-actions/export-solution@v0
    with:
      environment-url:  ${{ secrets.CRM_APP_URL_DEV }}
      app-id: ${{ secrets.CRM_APP_CLIENTID }}
      client-secret: ${{ secrets.CRM_APP_SECRET }}
      tenant-id: ${{ secrets.CRM_TENANTID }}
      solution-name: SolnName
      solution-output-file: 'SolnName.zip'
      working-directory: 'out'

    #... more steps, currently commented out while I analyze this issue

here's the tracelog:

Run microsoft/powerplatform-actions/export-solution@v0

loading action yaml file: D:\a\_actions\microsoft\powerplatform-actions\v0\export-solution\action.yml
export-solution:
  authN to env. authType:SPN authScheme:; cloudInstance: Public; envUrl: ***
  Error: error: Error: spawn D:\a\_actions\microsoft\powerplatform-actions\v0\dist\pac\tools\pac.exe ENOENT
  Error: error: Error: spawn D:\a\_actions\microsoft\powerplatform-actions\v0\dist\pac\tools\pac.exe ENOENT
  Error: failed: 
  Error: failed: 
  Error: error: Error: spawn D:\a\_actions\microsoft\powerplatform-actions\v0\dist\pac\tools\pac.exe ENOENT
  Error: error: Error: spawn D:\a\_actions\microsoft\powerplatform-actions\v0\dist\pac\tools\pac.exe ENOENT
  Error: failed: Error
  Error: failed: Error_

I'm not sure exactly what was wrong with the original parameters, but it appears that commenting out the "working directory" parameter and tweaking the solution-output-file parameter worked:
- name: Export Solution
uses: microsoft/powerplatform-actions/export-solution@v0
with:
environment-url: ${{ secrets.CRM_VH_URL_DEV }}
app-id: ${{ secrets.CRM_VH_CLIENTID }}
client-secret: ${{ secrets.CRM_VH_SECRET }}
tenant-id: ${{ secrets.CRM_TENANTID }}
solution-name: ${{ env.SOLUTION_NAME }}
solution-output-file: '/out/${{ env.SOLUTION_NAME }}.zip'