Skip to content

Commit 5932e32

Browse files
committed
docs: Update README action refs to v2
1 parent 25a6364 commit 5932e32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
3232
The 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
4545
In any other case, it'll be passed to `ConvertTo-Json $Value -Depth 100 -Compress -EscapeHandling EscapeNonAscii`
4646
and 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.
5959
If the script throws an error/exception, it'll be caught, printed to the log and the error message
6060
will 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: |

0 commit comments

Comments
 (0)