-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
45 lines (41 loc) Β· 1.47 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Setup the GitHub CLI
description: π¨βπ» Install & configure the GitHub CLI (gh) in your GitHub Actions runner
branding:
icon: terminal
color: blue
inputs:
gh-version:
description: >
Which version of 'gh' to install. This can be an exact version like
'2.38.0' or a semver range like '2.38' or '2.x'. You can also specify
'latest' to always use the latest version. The default is 'latest'.
default: latest
cli-token:
description: >
The GitHub token to use when pulling versions from cli/cli. By default
this should cover all cases. You shouldn't have to touch this setting.
default: |
${{ github.server_url == 'https://github.com' && github.token || '' }}
token:
description: >
Token to use when running 'gh auth login'. This can be set to an empty
string to skip the login step. By default this will use the token
'github.token'.
default: ${{ github.token }}
github-server-url:
description: >
The GitHub server URL to use when running 'gh auth login'. Defaults to the
current 'github.server_url'.
default: ${{ github.server_url }}
outputs:
gh-version:
description: >
The version of 'gh' that was installed. This will be something like
'2.38.0' or similar.
auth:
description: >
A boolean indicating whether or not the user is authenticated. This will
be true if 'gh auth login' was run and false otherwise.
runs:
using: node20
main: dist/main.js