-
Notifications
You must be signed in to change notification settings - Fork 13
/
env.d.ts
87 lines (73 loc) · 2.51 KB
/
env.d.ts
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
declare namespace NodeJS {
export interface ProcessEnv {
/**
* The path to the GitHub home directory used to store user data.
*
* Example: /github/home.
*/
HOME: string;
/** The name of the workflow. */
GITHUB_WORKFLOW: string;
/**
* A unique number for each run within a repository. This number does not
* change if you re-run the workflow run.
*/
GITHUB_RUN_ID: string;
/**
* A unique number for each run of a particular workflow in a repository.
* This number begins at 1 for the workflow's first run, and increments with
* each new run. This number does not change if you re-run the workflow run.
* */
GITHUB_RUN_NUMBER: string;
/** The unique identifier (id) of the action. */
GITHUB_ACTION: string;
/**
* Always set to true when GitHub Actions is running the workflow. You can
* use this variable to differentiate when tests are being run locally or
* by GitHub Actions.
*/
GITHUB_ACTIONS: string;
/**
* The name of the person or app that initiated the workflow.
*
* Example: octocat.
*/
GITHUB_ACTOR: string;
/** The owner and repository name. For example, octocat/Hello-World. */
GITHUB_REPOSITORY: string;
/** The name of the webhook event that triggered the workflow. */
GITHUB_EVENT_NAME: string;
/**
* The path of the file with the complete webhook event payload.
*
* Example: /github/workflow/event.json.
*/
GITHUB_EVENT_PATH: string;
/**
* The GitHub workspace directory path. The workspace directory contains a
* subdirectory with a copy of your repository if your workflow uses the
* actions/checkout action. If you don't use the actions/checkout action,
* the directory will be empty.
*
* Example: /home/runner/work/my-repo-name/my-repo-name.
*/
GITHUB_WORKSPACE: string;
/**
* The commit SHA that triggered the workflow.
*
* Example: ffac537e6cbbf934b08745a378932722df287a53.
*/
GITHUB_SHA: string;
/**
* The branch or tag ref that triggered the workflow. If neither a branch
* or tag is available for the event type, the variable will not exist.
*
* Example: refs/heads/feature-branch-1.
*/
GITHUB_REF: string;
/** Only set for forked repositories. The branch of the head repository. */
GITHUB_HEAD_REF: string;
/** Only set for forked repositories. The branch of the base repository. */
GITHUB_BASE_REF: string;
}
}