Skip to content

Commit

Permalink
docs: Update README action refs to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
amis92 committed Sep 10, 2020
1 parent 25a6364 commit 5932e32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ You can try out this action yourself by commenting on a [demo issue](https://git
## Reading step results
The return value of the script will be made available in the step's outputs under the `result` key.
```yml
- uses: Amadevus/pwsh-script@v1
- uses: Amadevus/pwsh-script@v2
id: my-script
with:
script: '1 + 1'
Expand All @@ -45,7 +45,7 @@ If the script return value is a single string, it'll be set as the value of the
In any other case, it'll be passed to `ConvertTo-Json $Value -Depth 100 -Compress -EscapeHandling EscapeNonAscii`
and the string result of that call will be set as the output value.
```yml
- uses: Amadevus/pwsh-script@v1
- uses: Amadevus/pwsh-script@v2
id: bad-script
with:
script: return [ordered]@{ x = 'a1'; y = 'b2' }
Expand All @@ -59,7 +59,7 @@ and the string result of that call will be set as the output value.
If the script throws an error/exception, it'll be caught, printed to the log and the error message
will be set as an `error` output of the action.
```yml
- uses: Amadevus/pwsh-script@v1
- uses: Amadevus/pwsh-script@v2
id: bad-script
with:
script: 'throw "this fails"'
Expand Down Expand Up @@ -90,7 +90,7 @@ The module has a good test suite written in Pester.
## Examples

```yml
- uses: Amadevus/pwsh-script@v1
- uses: Amadevus/pwsh-script@v2
id: script
with:
script: |
Expand Down

0 comments on commit 5932e32

Please sign in to comment.