You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`Version`| Specifies the version of the GitHub module to be installed. The value must be an exact version. | false ||
20
-
|`Prerelease`| Allow prerelease versions if available | false |`'false'`|
21
-
|`WorkingDirectory`| The working directory where the script will run from | false |`${{ github.workspace }}`|
20
+
|`Prerelease`| Allow prerelease versions if available.| false |`'false'`|
21
+
|`WorkingDirectory`| The working directory where the script will run from.| false |`${{ github.workspace }}`|
22
22
23
23
### Outputs
24
24
25
25
| Name | Description |
26
26
| - | - |
27
-
|`result`| The output of the script as a JSON object. To create outputs in`result` use [`Set-GitHubOutput`](https://psmodule.io/GitHub/Functions/Set-GitHubOutput/)|
27
+
|`result`| The output of the script as a JSON object. To add outputs to`result`, use `Set-GitHubOutput`.|
28
28
29
29
### Examples
30
30
31
31
#### Example 1: Run a GitHub PowerShell script
32
32
33
-
Run a script that uses the GitHub PowerShell module.
34
-
This example runs an authenticated script using the `GITHUB_TOKEN` and gets the GitHub Zen message.
33
+
Run a script (`scripts/main.ps1`) that uses the GitHub PowerShell module, authenticated using the `GITHUB_TOKEN`.
35
34
36
35
```yaml
37
36
jobs:
@@ -41,10 +40,7 @@ jobs:
41
40
- name: Run script
42
41
uses: PSModule/GitHub-Script@v1
43
42
with:
44
-
Script: |
45
-
LogGroup "Get-GitHubZen" {
46
-
Get-GitHubZen
47
-
}
43
+
Script: "scripts/main.ps1"
48
44
```
49
45
50
46
#### Example 2: Run a GitHub PowerShell script without a token
0 commit comments