-
-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi!
When I run action and when the Run Amadevus/pwsh-script@v2 executes - there is an Error
Error: Invoke-Expression : Cannot bind argument to parameter 'Path' because it is null.
At /home/runner/work/_actions/Amadevus/pwsh-script/v2/action.ps1:21 char:23
$Private:result = Invoke-Expression $Private:scriptFile
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidData: (:) [Invoke-Expression], ParameterBindingValidationException
FullyQualifiedErrorId : >ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.InvokeExpressionCommandError: Process completed with exit code 1.
Here is the Action yaml:
`
name: Convert Contact List
on:
workflow_dispatch:
schedule:
- cron: "* */3 * * *"
jobs:
build:
name: Run Script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Amadevus/pwsh-script@v2
id: script
env:
GH_TOKEN: ${{ github.token }}
with:
script: |
# ------ AnyTone ------ #
$DMRIdsContent = Get-Content ./DMRIds.dat
- name: Update files in repository
uses: actions-x/commit@v6
with:
email: "krot4u@gmail.com"
name: GitHub Actions Autocommitter
branch: master
files: Devices_Contact_List/*
repository: https://github.com/${{ github.repository }}
token: ${{ github.token }}
force: true
`