File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ You can try out this action yourself by commenting on a [demo issue](https://git
3131## Reading step results
3232The return value of the script will be made available in the step's outputs under the ` result ` key.
3333``` yml
34- - uses : Amadevus/pwsh-script@v1
34+ - uses : Amadevus/pwsh-script@v2
3535 id : my-script
3636 with :
3737 script : ' 1 + 1'
@@ -45,7 +45,7 @@ If the script return value is a single string, it'll be set as the value of the
4545In any other case, it'll be passed to ` ConvertTo-Json $Value -Depth 100 -Compress -EscapeHandling EscapeNonAscii `
4646and the string result of that call will be set as the output value.
4747``` yml
48- - uses : Amadevus/pwsh-script@v1
48+ - uses : Amadevus/pwsh-script@v2
4949 id : bad-script
5050 with :
5151 script : return [ordered]@{ x = 'a1'; y = 'b2' }
@@ -59,7 +59,7 @@ and the string result of that call will be set as the output value.
5959If the script throws an error/exception, it'll be caught, printed to the log and the error message
6060will be set as an ` error ` output of the action.
6161``` yml
62- - uses : Amadevus/pwsh-script@v1
62+ - uses : Amadevus/pwsh-script@v2
6363 id : bad-script
6464 with :
6565 script : ' throw "this fails"'
@@ -90,7 +90,7 @@ The module has a good test suite written in Pester.
9090## Examples
9191
9292``` yml
93- - uses : Amadevus/pwsh-script@v1
93+ - uses : Amadevus/pwsh-script@v2
9494 id : script
9595 with :
9696 script : |
You can’t perform that action at this time.
0 commit comments