@actions/languageservice 0.3.30 → 0.3.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/complete.d.ts.map +1 -1
- package/dist/complete.js +57 -38
- package/dist/complete.js.map +1 -1
- package/dist/context/action-context.d.ts +30 -0
- package/dist/context/action-context.d.ts.map +1 -0
- package/dist/context/action-context.js +86 -0
- package/dist/context/action-context.js.map +1 -0
- package/dist/context/workflow-context.d.ts +10 -0
- package/dist/context/workflow-context.d.ts.map +1 -1
- package/dist/context/workflow-context.js +10 -0
- package/dist/context/workflow-context.js.map +1 -1
- package/dist/context-providers/default.d.ts +10 -1
- package/dist/context-providers/default.d.ts.map +1 -1
- package/dist/context-providers/default.js +125 -27
- package/dist/context-providers/default.js.map +1 -1
- package/dist/context-providers/descriptions.min.json +1 -1
- package/dist/context-providers/github.d.ts +4 -1
- package/dist/context-providers/github.d.ts.map +1 -1
- package/dist/context-providers/github.js +6 -0
- package/dist/context-providers/github.js.map +1 -1
- package/dist/context-providers/job.d.ts +3 -0
- package/dist/context-providers/job.d.ts.map +1 -1
- package/dist/context-providers/job.js +23 -25
- package/dist/context-providers/job.js.map +1 -1
- package/dist/description-providers/reusable-job-inputs.d.ts +8 -0
- package/dist/description-providers/reusable-job-inputs.d.ts.map +1 -1
- package/dist/description-providers/reusable-job-inputs.js +8 -0
- package/dist/description-providers/reusable-job-inputs.js.map +1 -1
- package/dist/document-links.d.ts +3 -0
- package/dist/document-links.d.ts.map +1 -1
- package/dist/document-links.js +48 -3
- package/dist/document-links.js.map +1 -1
- package/dist/hover.d.ts +5 -1
- package/dist/hover.d.ts.map +1 -1
- package/dist/hover.js +81 -43
- package/dist/hover.js.map +1 -1
- package/dist/inlay-hints.d.ts.map +1 -1
- package/dist/inlay-hints.js +7 -2
- package/dist/inlay-hints.js.map +1 -1
- package/dist/utils/document-type.d.ts +22 -0
- package/dist/utils/document-type.d.ts.map +1 -0
- package/dist/utils/document-type.js +41 -0
- package/dist/utils/document-type.js.map +1 -0
- package/dist/utils/transform.d.ts +18 -0
- package/dist/utils/transform.d.ts.map +1 -1
- package/dist/utils/transform.js +18 -2
- package/dist/utils/transform.js.map +1 -1
- package/dist/utils/workflow-cache.d.ts +19 -6
- package/dist/utils/workflow-cache.d.ts.map +1 -1
- package/dist/utils/workflow-cache.js +51 -11
- package/dist/utils/workflow-cache.js.map +1 -1
- package/dist/validate-action-reference.d.ts +9 -0
- package/dist/validate-action-reference.d.ts.map +1 -0
- package/dist/validate-action-reference.js +82 -0
- package/dist/validate-action-reference.js.map +1 -0
- package/dist/validate-action.d.ts +12 -3
- package/dist/validate-action.d.ts.map +1 -1
- package/dist/validate-action.js +75 -57
- package/dist/validate-action.js.map +1 -1
- package/dist/validate.d.ts +1 -1
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +21 -8
- package/dist/validate.js.map +1 -1
- package/dist/value-providers/config.d.ts +2 -2
- package/dist/value-providers/config.d.ts.map +1 -1
- package/dist/value-providers/definition.d.ts +3 -1
- package/dist/value-providers/definition.d.ts.map +1 -1
- package/dist/value-providers/definition.js +12 -13
- package/dist/value-providers/definition.js.map +1 -1
- package/package.json +5 -5
- package/dist/context-providers/strategy.d.ts +0 -4
- package/dist/context-providers/strategy.d.ts.map +0 -1
- package/dist/context-providers/strategy.js +0 -40
- package/dist/context-providers/strategy.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { data, DescriptionDictionary } from "@actions/expressions";
|
|
2
2
|
import { Kind } from "@actions/expressions/data/expressiondata";
|
|
3
|
+
import { getActionInputs, getActionStepIdsBefore } from "../context/action-context.js";
|
|
3
4
|
import { getDescription, RootContext } from "./descriptions.js";
|
|
4
5
|
import { getEnvContext } from "./env.js";
|
|
5
6
|
import { getGithubContext } from "./github.js";
|
|
@@ -10,14 +11,16 @@ import { getMatrixContext } from "./matrix.js";
|
|
|
10
11
|
import { getNeedsContext } from "./needs.js";
|
|
11
12
|
import { getSecretsContext } from "./secrets.js";
|
|
12
13
|
import { getStepsContext } from "./steps.js";
|
|
13
|
-
import { getStrategyContext } from "./strategy.js";
|
|
14
14
|
export var Mode;
|
|
15
15
|
(function (Mode) {
|
|
16
16
|
Mode[Mode["Completion"] = 0] = "Completion";
|
|
17
17
|
Mode[Mode["Validation"] = 1] = "Validation";
|
|
18
18
|
Mode[Mode["Hover"] = 2] = "Hover";
|
|
19
19
|
})(Mode = Mode || (Mode = {}));
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Build expression context for workflow files (e.g., github.*, steps.*, needs.*)
|
|
22
|
+
*/
|
|
23
|
+
export async function getWorkflowExpressionContext(names, config, workflowContext, mode) {
|
|
21
24
|
const context = new DescriptionDictionary();
|
|
22
25
|
// All context names are valid - strategy and matrix are always available
|
|
23
26
|
// (with default values when no strategy block is defined)
|
|
@@ -27,7 +30,9 @@ export async function getContext(names, config, workflowContext, mode) {
|
|
|
27
30
|
context.add(contextName, value);
|
|
28
31
|
continue;
|
|
29
32
|
}
|
|
30
|
-
const remoteValue =
|
|
33
|
+
const remoteValue = workflowContext
|
|
34
|
+
? await config?.getContext(contextName, value, workflowContext, mode)
|
|
35
|
+
: undefined;
|
|
31
36
|
if (remoteValue) {
|
|
32
37
|
value = remoteValue;
|
|
33
38
|
}
|
|
@@ -41,48 +46,141 @@ export async function getContext(names, config, workflowContext, mode) {
|
|
|
41
46
|
}
|
|
42
47
|
return context;
|
|
43
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Maps context name to its provider (e.g., "steps" -> getStepsContext)
|
|
51
|
+
*/
|
|
44
52
|
function getDefaultContext(name, workflowContext, mode) {
|
|
45
53
|
switch (name) {
|
|
46
54
|
case "env":
|
|
47
|
-
return getEnvContext(workflowContext);
|
|
55
|
+
return workflowContext ? getEnvContext(workflowContext) : new DescriptionDictionary();
|
|
48
56
|
case "github":
|
|
49
57
|
return getGithubContext(workflowContext, mode);
|
|
50
58
|
case "inputs":
|
|
51
|
-
return getInputsContext(workflowContext);
|
|
59
|
+
return workflowContext ? getInputsContext(workflowContext) : new DescriptionDictionary();
|
|
52
60
|
case "reusableWorkflowJob":
|
|
53
61
|
case "job":
|
|
54
|
-
return getJobContext(workflowContext);
|
|
62
|
+
return workflowContext ? getJobContext(workflowContext) : new DescriptionDictionary();
|
|
55
63
|
case "jobs":
|
|
56
|
-
return getJobsContext(workflowContext);
|
|
64
|
+
return workflowContext ? getJobsContext(workflowContext) : new DescriptionDictionary();
|
|
57
65
|
case "matrix":
|
|
58
|
-
return getMatrixContext(workflowContext, mode);
|
|
66
|
+
return workflowContext ? getMatrixContext(workflowContext, mode) : new DescriptionDictionary();
|
|
59
67
|
case "needs":
|
|
60
|
-
return getNeedsContext(workflowContext);
|
|
68
|
+
return workflowContext ? getNeedsContext(workflowContext) : new DescriptionDictionary();
|
|
61
69
|
case "runner":
|
|
62
|
-
return
|
|
63
|
-
arch: "X64",
|
|
64
|
-
debug: "1",
|
|
65
|
-
environment: "github-hosted",
|
|
66
|
-
name: "GitHub Actions 2",
|
|
67
|
-
os: "Linux",
|
|
68
|
-
temp: "/home/runner/work/_temp",
|
|
69
|
-
tool_cache: "/opt/hostedtoolcache",
|
|
70
|
-
workspace: "/home/runner/work/repo"
|
|
71
|
-
});
|
|
70
|
+
return getRunnerContext();
|
|
72
71
|
case "secrets":
|
|
73
|
-
return getSecretsContext(workflowContext, mode);
|
|
72
|
+
return workflowContext ? getSecretsContext(workflowContext, mode) : new DescriptionDictionary();
|
|
74
73
|
case "steps":
|
|
75
|
-
return getStepsContext(workflowContext);
|
|
74
|
+
return workflowContext ? getStepsContext(workflowContext) : new DescriptionDictionary();
|
|
76
75
|
case "strategy":
|
|
77
|
-
return getStrategyContext(
|
|
76
|
+
return getStrategyContext();
|
|
78
77
|
}
|
|
79
78
|
return undefined;
|
|
80
79
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Returns the strategy context with default values (fail-fast, job-index, etc.)
|
|
82
|
+
*/
|
|
83
|
+
function getStrategyContext() {
|
|
84
|
+
// https://docs.github.com/en/actions/learn-github-actions/contexts#strategy-context
|
|
85
|
+
return new DescriptionDictionary({ key: "fail-fast", value: new data.BooleanData(true), description: getDescription("strategy", "fail-fast") }, { key: "job-index", value: new data.NumberData(0), description: getDescription("strategy", "job-index") }, { key: "job-total", value: new data.NumberData(1), description: getDescription("strategy", "job-total") }, { key: "max-parallel", value: new data.NumberData(1), description: getDescription("strategy", "max-parallel") });
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Returns the runner context with environment info (arch, os, temp, workspace, etc.)
|
|
89
|
+
*/
|
|
90
|
+
function getRunnerContext() {
|
|
91
|
+
// https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context
|
|
92
|
+
return new DescriptionDictionary({ key: "arch", value: new data.StringData("X64"), description: getDescription("runner", "arch") }, { key: "debug", value: new data.StringData("1"), description: getDescription("runner", "debug") }, {
|
|
93
|
+
key: "environment",
|
|
94
|
+
value: new data.StringData("github-hosted"),
|
|
95
|
+
description: getDescription("runner", "environment")
|
|
96
|
+
}, { key: "name", value: new data.StringData("GitHub Actions 2"), description: getDescription("runner", "name") }, { key: "os", value: new data.StringData("Linux"), description: getDescription("runner", "os") }, { key: "temp", value: new data.StringData("/home/runner/work/_temp"), description: getDescription("runner", "temp") }, {
|
|
97
|
+
key: "tool_cache",
|
|
98
|
+
value: new data.StringData("/opt/hostedtoolcache"),
|
|
99
|
+
description: getDescription("runner", "tool_cache")
|
|
100
|
+
}, {
|
|
101
|
+
key: "workspace",
|
|
102
|
+
value: new data.StringData("/home/runner/work/repo"),
|
|
103
|
+
description: getDescription("runner", "workspace")
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Get context for expression completion in action.yml files.
|
|
108
|
+
* Actions have a more limited set of contexts available compared to workflows.
|
|
109
|
+
*/
|
|
110
|
+
export function getActionExpressionContext(names, config, actionContext, mode) {
|
|
111
|
+
const context = new DescriptionDictionary();
|
|
112
|
+
for (const contextName of names) {
|
|
113
|
+
const value = getDefaultActionContext(contextName, actionContext, mode);
|
|
114
|
+
if (value) {
|
|
115
|
+
context.add(contextName, value, getDescription(RootContext, contextName));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return context;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Maps context name to its provider for action.yml files (e.g., "inputs" -> getActionInputsContext)
|
|
122
|
+
*/
|
|
123
|
+
function getDefaultActionContext(name, actionContext, mode) {
|
|
124
|
+
switch (name) {
|
|
125
|
+
case "inputs":
|
|
126
|
+
// Return empty dictionary if no context - still allows completion, just without specific input names
|
|
127
|
+
return actionContext ? getActionInputsContext(actionContext) : new DescriptionDictionary();
|
|
128
|
+
case "steps":
|
|
129
|
+
// Return empty dictionary if no context - still allows completion, just without specific step IDs
|
|
130
|
+
return actionContext ? getActionStepsContext(actionContext) : new DescriptionDictionary();
|
|
131
|
+
case "github":
|
|
132
|
+
// Use the same github context but without workflow-specific event info
|
|
133
|
+
// Actions inherit the event context from the calling workflow at runtime
|
|
134
|
+
return getGithubContext(undefined, mode);
|
|
135
|
+
case "runner":
|
|
136
|
+
return getRunnerContext();
|
|
137
|
+
case "env":
|
|
138
|
+
// Actions can access env but we don't have runtime values
|
|
139
|
+
return new DescriptionDictionary();
|
|
140
|
+
case "job": {
|
|
141
|
+
// https://docs.github.com/en/actions/learn-github-actions/contexts#job-context
|
|
142
|
+
const jobContext = new DescriptionDictionary();
|
|
143
|
+
jobContext.add("status", new data.StringData(""), getDescription("job", "status"));
|
|
144
|
+
jobContext.add("check_run_id", new data.StringData(""), getDescription("job", "check_run_id"));
|
|
145
|
+
const containerContext = new DescriptionDictionary();
|
|
146
|
+
containerContext.add("id", new data.StringData(""), getDescription("job", "container.id"));
|
|
147
|
+
containerContext.add("network", new data.StringData(""), getDescription("job", "container.network"));
|
|
148
|
+
jobContext.add("container", containerContext, getDescription("job", "container"));
|
|
149
|
+
jobContext.add("services", new DescriptionDictionary(), getDescription("job", "services"));
|
|
150
|
+
return jobContext;
|
|
151
|
+
}
|
|
152
|
+
case "strategy":
|
|
153
|
+
return getStrategyContext();
|
|
154
|
+
case "matrix":
|
|
155
|
+
// Actions can access matrix context at runtime
|
|
156
|
+
return new DescriptionDictionary();
|
|
157
|
+
}
|
|
158
|
+
return undefined;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Get inputs context for action files based on defined inputs
|
|
162
|
+
*/
|
|
163
|
+
function getActionInputsContext(actionContext) {
|
|
164
|
+
const dict = new DescriptionDictionary();
|
|
165
|
+
const inputs = getActionInputs(actionContext.template);
|
|
166
|
+
for (const input of inputs) {
|
|
167
|
+
dict.add(input.id, new data.StringData(""), input.description || "");
|
|
168
|
+
}
|
|
169
|
+
return dict;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Get steps context for composite action files based on step IDs
|
|
173
|
+
*/
|
|
174
|
+
function getActionStepsContext(actionContext) {
|
|
175
|
+
const dict = new DescriptionDictionary();
|
|
176
|
+
const stepIds = getActionStepIdsBefore(actionContext);
|
|
177
|
+
for (const stepId of stepIds) {
|
|
178
|
+
const stepDict = new DescriptionDictionary();
|
|
179
|
+
stepDict.add("outputs", new DescriptionDictionary(), getDescription("steps", "outputs"));
|
|
180
|
+
stepDict.add("outcome", new data.StringData("success"), getDescription("steps", "outcome"));
|
|
181
|
+
stepDict.add("conclusion", new data.StringData("success"), getDescription("steps", "conclusion"));
|
|
182
|
+
dict.add(stepId, stepDict, `Step: ${stepId}`);
|
|
85
183
|
}
|
|
86
|
-
return
|
|
184
|
+
return dict;
|
|
87
185
|
}
|
|
88
186
|
//# sourceMappingURL=default.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../src/context-providers/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,qBAAqB,EAA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,SAAS,MAAM,EAAE,CAAC,CAAC;KAC/C;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "$schema": "./descriptionsSchema.json", "root": { "github": { "description": "Information about the workflow run. For more information, see [`github` context](https://docs.github.com/actions/learn-github-actions/contexts#github-context)." }, "env": { "description": "Contains variables set in a workflow, job, or step. For more information, see [`env` context](https://docs.github.com/actions/learn-github-actions/contexts#env-context)." }, "vars": { "description": "Contains variables set at the repository, organization, or environment levels. For more information, see [`vars` context](https://docs.github.com/actions/learn-github-actions/contexts#vars-context)." }, "job": { "description": "Information about the currently running job. For more information, see [`job` context](https://docs.github.com/actions/learn-github-actions/contexts#job-context)." }, "jobs": { "description": "For reusable workflows only, contains outputs of jobs from the reusable workflow. For more information, see [`jobs` context](https://docs.github.com/actions/learn-github-actions/contexts#jobs-context)." }, "steps": { "description": "Information about the steps that have been run in the current job. For more information, see [`steps` context](https://docs.github.com/actions/learn-github-actions/contexts#steps-context)." }, "runner": { "description": "Information about the runner that is running the current job. For more information, see [`runner` context](https://docs.github.com/actions/learn-github-actions/contexts#runner-context)." }, "secrets": { "description": "Contains the names and values of secrets that are available to a workflow run. For more information, see [`secrets` context](https://docs.github.com/actions/learn-github-actions/contexts#secrets-context)." }, "strategy": { "description": "Information about the matrix execution strategy for the current job. For more information, see [`strategy` context](https://docs.github.com/actions/learn-github-actions/contexts#strategy-context)." }, "matrix": { "description": "Contains the matrix properties defined in the workflow that apply to the current job. For more information, see [`matrix` context](https://docs.github.com/actions/learn-github-actions/contexts#matrix-context)." }, "needs": { "description": "Contains the outputs of all jobs that are defined as a dependency of the current job. For more information, see [`needs` context](https://docs.github.com/actions/learn-github-actions/contexts#needs-context)." }, "inputs": { "description": "Contains the inputs of a reusable or manually triggered workflow. For more information, see [`inputs` context](https://docs.github.com/actions/learn-github-actions/contexts#inputs-context)." } }, "functions": { "always": { "description": "Causes the step to always execute, and returns `true`, even when canceled. The `always` expression is best used at the step level or on tasks that you expect to run even when a job is canceled. For example, you can use `always` to send logs even when a job is canceled." }, "cancelled": { "description": "Returns `true` if the workflow was canceled." }, "failure": { "description": "Returns `true` when any previous step of a job fails. If you have a chain of dependent jobs, `failure()` returns `true` if any ancestor job fails." }, "hashFiles": { "description": "Returns a single hash for the set of files that matches the `path` pattern. You can provide a single `path` pattern or multiple `path` patterns separated by commas. The `path` is relative to the `GITHUB_WORKSPACE` directory and can only include files inside of the `GITHUB_WORKSPACE`. This function calculates an individual SHA-256 hash for each matched file, and then uses those hashes to calculate a final SHA-256 hash for the set of files. If the `path` pattern does not match any files, this returns an empty string. For more information about SHA-256, see \"[SHA-2](https://wikipedia.org/wiki/SHA-2).\"\n\nYou can use pattern matching characters to match file names. Pattern matching is case-insensitive on Windows. For more information about supported pattern matching characters, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet).\"" } }, "github": { "action": { "description": "The name of the action currently running, or the [`id`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsid) of a step. GitHub removes special characters, and uses the name `__run` when the current step runs a script without an `id`. If you use the same action more than once in the same job, the name will include a suffix with the sequence number with underscore before it. For example, the first script you run will have the name `__run`, and the second script will be named `__run_2`. Similarly, the second invocation of `actions/checkout` will be `actionscheckout2`." }, "action_path": { "description": "The path where an action is located. This property is only supported in composite actions. You can use this path to access files located in the same repository as the action, for example by changing directories to the path: `cd ${{ github.action_path }}`." }, "action_ref": { "description": "For a step executing an action, this is the ref of the action being executed. For example, `v2`." }, "action_repository": { "description": "For a step executing an action, this is the owner and repository name of the action. For example, `actions/checkout`." }, "action_status": { "description": "For a composite action, the current result of the composite action." }, "actor": { "description": "The username of the user that triggered the initial workflow run. If the workflow run is a re-run, this value may differ from `github.triggering_actor`. Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating the re-run (`github.triggering_actor`) has different privileges." }, "actor_id": { "description": "The account ID of the person or app that triggered the initial workflow run. For example, `1234567`. Note that this is different from the actor username.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "api_url": { "description": "The URL of the GitHub REST API." }, "base_ref": { "description": "The `base_ref` or target branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target`." }, "env": { "description": "Path on the runner to the file that sets environment variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see \"[Workflow commands for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable).\"" }, "event": { "description": "The full event webhook payload. You can access individual properties of the event using this context. This object is identical to the webhook payload of the event that triggered the workflow run, and is different for each event. The webhooks for each GitHub Actions event is linked in \"[Events that trigger workflows](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows).\" For example, for a workflow run triggered by the [`push` event](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#push), this object contains the contents of the [push webhook payload](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#push)." }, "event_name": { "description": "The name of the event that triggered the workflow run." }, "event_path": { "description": "The path to the file on the runner that contains the full event webhook payload." }, "graphql_url": { "description": "The URL of the GitHub GraphQL API." }, "head_ref": { "description": "The `head_ref` or source branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target`." }, "job": { "description": "The [`job_id`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_id) of the current job.\nNote: This context property is set by the Actions runner, and is only available within the execution `steps` of a job. Otherwise, the value of this property will be `null`." }, "job_workflow_sha": { "description": "For jobs using a reusable workflow, the commit SHA for the reusable workflow file.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "path": { "description": "Path on the runner to the file that sets system PATH variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see \"[Workflow commands for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path).\"" }, "ref": { "description": "The fully-formed ref of the branch or tag that triggered the workflow run. For workflows triggered by `push`, this is the branch or tag ref that was pushed. For workflows triggered by `pull_request`, this is the pull request merge branch. For workflows triggered by `release`, this is the release tag created. For other triggers, this is the branch or tag ref that triggered the workflow run. This is only set if a branch or tag is available for the event type. The ref given is fully-formed, meaning that for branches the format is `refs/heads/<branch_name>`, for pull requests it is `refs/pull/<pr_number>/merge`, and for tags it is `refs/tags/<tag_name>`. For example, `refs/heads/feature-branch-1`." }, "ref_name": { "description": "The short ref name of the branch or tag that triggered the workflow run. This value matches the branch or tag name shown on GitHub. For example, `feature-branch-1`." }, "ref_protected": { "description": "`true` if branch protections are configured for the ref that triggered the workflow run." }, "ref_type": { "description": "The type of ref that triggered the workflow run. Valid values are `branch` or `tag`." }, "repository": { "description": "The owner and repository name. For example, `octocat/Hello-World`." }, "repository_id": { "description": "The ID of the repository. For example, `123456789`. Note that this is different from the repository name.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "repository_owner": { "description": "The repository owner's username. For example, `octocat`." }, "repository_owner_id": { "description": "The repository owner's account ID. For example, `1234567`. Note that this is different from the owner's name.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "repositoryUrl": { "description": "The Git URL to the repository. For example, `git://github.com/octocat/hello-world.git`." }, "retention_days": { "description": "The number of days that workflow run logs and artifacts are kept." }, "run_id": { "description": "A unique number for each workflow run within a repository. This number does not change if you re-run the workflow run." }, "run_number": { "description": "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." }, "run_attempt": { "description": "A unique number for each attempt of a particular workflow run in a repository. This number begins at 1 for the workflow run's first attempt, and increments with each re-run." }, "secret_source": { "description": "The source of a secret used in a workflow. Possible values are `None`, `Actions`, `Dependabot`, or `Codespaces`." }, "server_url": { "description": "The URL of the GitHub server. For example: `https://github.com`." }, "sha": { "description": "The commit SHA that triggered the workflow. The value of this commit SHA depends on the event that triggered the workflow. For more information, see \"[Events that trigger workflows](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows).\" For example, `ffac537e6cbbf934b08745a378932722df287a53`." }, "token": { "description": "A token to authenticate on behalf of the GitHub App installed on your repository. This is functionally equivalent to the `GITHUB_TOKEN` secret. For more information, see \"[Automatic token authentication](https://docs.github.com/actions/security-guides/automatic-token-authentication).\"\nNote: This context property is set by the Actions runner, and is only available within the execution `steps` of a job. Otherwise, the value of this property will be `null`." }, "triggering_actor": { "description": "The username of the user that initiated the workflow run. If the workflow run is a re-run, this value may differ from `github.actor`. Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating the re-run (`github.triggering_actor`) has different privileges." }, "workflow": { "description": "The name of the workflow. If the workflow file doesn't specify a `name`, the value of this property is the full path of the workflow file in the repository." }, "workflow_ref": { "description": "The ref path to the workflow. For example, `octocat/hello-world/.github/workflows/my-workflow.yml@refs/heads/my_branch`.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "workflow_sha": { "description": "The commit SHA for the workflow file.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "workspace": { "description": "The default working directory on the runner for steps, and the default location of your repository when using the [`checkout`](https://github.com/actions/checkout) action." } }, "secrets": { "GITHUB_TOKEN": { "description": "Automatically created token for each workflow run. For more information, see \"[Automatic token authentication](https://docs.github.com/actions/security-guides/automatic-token-authentication).\"" } }, "jobs": { "outputs": { "description": "The set of outputs of a job in a reusable workflow." }, "result": { "description": "The result of a job in the reusable workflow. Possible values are `success`, `failure`, `cancelled`, or `skipped`." } }, "steps": { "outputs": { "description": "The set of outputs defined for the step. For more information, see \"[Metadata syntax for GitHub Actions](https://docs.github.com/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-docker-container-and-javascript-actions).\"" }, "conclusion": { "description": "The result of a completed step after [`continue-on-error`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error) is applied. Possible values are `success`, `failure`, `cancelled`, or `skipped`. When a `continue-on-error` step fails, the `outcome` is `failure`, but the final conclusion is `success`." }, "outcome": { "description": "The result of a completed step before [`continue-on-error`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error) is applied. Possible values are `success`, `failure`, `cancelled`, or `skipped`. When a `continue-on-error` step fails, the `outcome` is `failure`, but the final conclusion is `success`." } }, "runner": { "name": { "description": "The name of the runner executing the job." }, "os": { "description": "The operating system of the runner executing the job. Possible values are `Linux`, `Windows`, or `macOS`." }, "arch": { "description": "The architecture of the runner executing the job. Possible values are `X86`, `X64`, `ARM`, or `ARM64`." }, "temp": { "description": "The path to a temporary directory on the runner. This directory is emptied at the beginning and end of each job. Note that files will not be removed if the runner's user account does not have permission to delete them." }, "tool_cache": { "description": "The path to the directory containing preinstalled tools for GitHub-hosted runners. For more information, see \"[About GitHub-hosted runners](https://docs.github.com/actions/reference/specifications-for-github-hosted-runners/#supported-software).\"" }, "debug": { "description": "This is set only if [`ACTIONS_STEP_DEBUG`](https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging) is enabled, and always has the value of `\"1\"`. It can be useful as an indicator to enable additional debugging or verbose logging in your own job steps." }, "environment": { "description": "The environment of the runner executing the job. Possible values are `github-hosted` for GitHub-hosted runners, or `self-hosted` for self-hosted runners." }, "workspace": { "description": "The runner-specific working directory path for the job." } }, "strategy": { "fail-fast": { "description": "When `true`, all in-progress jobs are canceled if any job in a matrix fails. For more information, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast).\"" }, "job-index": { "description": "The index of the current job in the matrix. **Note:** This number is a zero-based number. The first job's index in the matrix is `0`." }, "job-total": { "description": "The total number of jobs in the matrix. **Note:** This number **is not** a zero-based number. For example, for a matrix with four jobs, the value of `job-total` is `4`." }, "max-parallel": { "description": "The maximum number of jobs that can run simultaneously when using a matrix job strategy. For more information, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymax-parallel).\"" } } }
|
|
1
|
+
{ "$schema": "./descriptionsSchema.json", "root": { "github": { "description": "Information about the workflow run. For more information, see [`github` context](https://docs.github.com/actions/learn-github-actions/contexts#github-context)." }, "env": { "description": "Contains variables set in a workflow, job, or step. For more information, see [`env` context](https://docs.github.com/actions/learn-github-actions/contexts#env-context)." }, "vars": { "description": "Contains variables set at the repository, organization, or environment levels. For more information, see [`vars` context](https://docs.github.com/actions/learn-github-actions/contexts#vars-context)." }, "job": { "description": "Information about the currently running job. For more information, see [`job` context](https://docs.github.com/actions/learn-github-actions/contexts#job-context)." }, "jobs": { "description": "For reusable workflows only, contains outputs of jobs from the reusable workflow. For more information, see [`jobs` context](https://docs.github.com/actions/learn-github-actions/contexts#jobs-context)." }, "steps": { "description": "Information about the steps that have been run in the current job. For more information, see [`steps` context](https://docs.github.com/actions/learn-github-actions/contexts#steps-context)." }, "runner": { "description": "Information about the runner that is running the current job. For more information, see [`runner` context](https://docs.github.com/actions/learn-github-actions/contexts#runner-context)." }, "secrets": { "description": "Contains the names and values of secrets that are available to a workflow run. For more information, see [`secrets` context](https://docs.github.com/actions/learn-github-actions/contexts#secrets-context)." }, "strategy": { "description": "Information about the matrix execution strategy for the current job. For more information, see [`strategy` context](https://docs.github.com/actions/learn-github-actions/contexts#strategy-context)." }, "matrix": { "description": "Contains the matrix properties defined in the workflow that apply to the current job. For more information, see [`matrix` context](https://docs.github.com/actions/learn-github-actions/contexts#matrix-context)." }, "needs": { "description": "Contains the outputs of all jobs that are defined as a dependency of the current job. For more information, see [`needs` context](https://docs.github.com/actions/learn-github-actions/contexts#needs-context)." }, "inputs": { "description": "Contains the inputs of a reusable or manually triggered workflow. For more information, see [`inputs` context](https://docs.github.com/actions/learn-github-actions/contexts#inputs-context)." } }, "functions": { "always": { "description": "Causes the step to always execute, and returns `true`, even when canceled. The `always` expression is best used at the step level or on tasks that you expect to run even when a job is canceled. For example, you can use `always` to send logs even when a job is canceled." }, "cancelled": { "description": "Returns `true` if the workflow was canceled." }, "failure": { "description": "Returns `true` when any previous step of a job fails. If you have a chain of dependent jobs, `failure()` returns `true` if any ancestor job fails." }, "hashFiles": { "description": "Returns a single hash for the set of files that matches the `path` pattern. You can provide a single `path` pattern or multiple `path` patterns separated by commas. The `path` is relative to the `GITHUB_WORKSPACE` directory and can only include files inside of the `GITHUB_WORKSPACE`. This function calculates an individual SHA-256 hash for each matched file, and then uses those hashes to calculate a final SHA-256 hash for the set of files. If the `path` pattern does not match any files, this returns an empty string. For more information about SHA-256, see \"[SHA-2](https://wikipedia.org/wiki/SHA-2).\"\n\nYou can use pattern matching characters to match file names. Pattern matching is case-insensitive on Windows. For more information about supported pattern matching characters, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet).\"" } }, "github": { "action": { "description": "The name of the action currently running, or the [`id`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsid) of a step. GitHub removes special characters, and uses the name `__run` when the current step runs a script without an `id`. If you use the same action more than once in the same job, the name will include a suffix with the sequence number with underscore before it. For example, the first script you run will have the name `__run`, and the second script will be named `__run_2`. Similarly, the second invocation of `actions/checkout` will be `actionscheckout2`." }, "action_path": { "description": "The path where an action is located. This property is only supported in composite actions. You can use this path to access files located in the same repository as the action, for example by changing directories to the path: `cd ${{ github.action_path }}`." }, "action_ref": { "description": "For a step executing an action, this is the ref of the action being executed. For example, `v2`." }, "action_repository": { "description": "For a step executing an action, this is the owner and repository name of the action. For example, `actions/checkout`." }, "action_status": { "description": "For a composite action, the current result of the composite action." }, "actor": { "description": "The username of the user that triggered the initial workflow run. If the workflow run is a re-run, this value may differ from `github.triggering_actor`. Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating the re-run (`github.triggering_actor`) has different privileges." }, "actor_id": { "description": "The account ID of the person or app that triggered the initial workflow run. For example, `1234567`. Note that this is different from the actor username.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "api_url": { "description": "The URL of the GitHub REST API." }, "base_ref": { "description": "The `base_ref` or target branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target`." }, "env": { "description": "Path on the runner to the file that sets environment variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see \"[Workflow commands for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable).\"" }, "event": { "description": "The full event webhook payload. You can access individual properties of the event using this context. This object is identical to the webhook payload of the event that triggered the workflow run, and is different for each event. The webhooks for each GitHub Actions event is linked in \"[Events that trigger workflows](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows).\" For example, for a workflow run triggered by the [`push` event](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#push), this object contains the contents of the [push webhook payload](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#push)." }, "event_name": { "description": "The name of the event that triggered the workflow run." }, "event_path": { "description": "The path to the file on the runner that contains the full event webhook payload." }, "graphql_url": { "description": "The URL of the GitHub GraphQL API." }, "head_ref": { "description": "The `head_ref` or source branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target`." }, "job": { "description": "The [`job_id`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_id) of the current job.\nNote: This context property is set by the Actions runner, and is only available within the execution `steps` of a job. Otherwise, the value of this property will be `null`." }, "job_workflow_sha": { "description": "For jobs using a reusable workflow, the commit SHA for the reusable workflow file.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "path": { "description": "Path on the runner to the file that sets system PATH variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see \"[Workflow commands for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path).\"" }, "ref": { "description": "The fully-formed ref of the branch or tag that triggered the workflow run. For workflows triggered by `push`, this is the branch or tag ref that was pushed. For workflows triggered by `pull_request`, this is the pull request merge branch. For workflows triggered by `release`, this is the release tag created. For other triggers, this is the branch or tag ref that triggered the workflow run. This is only set if a branch or tag is available for the event type. The ref given is fully-formed, meaning that for branches the format is `refs/heads/<branch_name>`, for pull requests it is `refs/pull/<pr_number>/merge`, and for tags it is `refs/tags/<tag_name>`. For example, `refs/heads/feature-branch-1`." }, "ref_name": { "description": "The short ref name of the branch or tag that triggered the workflow run. This value matches the branch or tag name shown on GitHub. For example, `feature-branch-1`." }, "ref_protected": { "description": "`true` if branch protections are configured for the ref that triggered the workflow run." }, "ref_type": { "description": "The type of ref that triggered the workflow run. Valid values are `branch` or `tag`." }, "repository": { "description": "The owner and repository name. For example, `octocat/Hello-World`." }, "repository_id": { "description": "The ID of the repository. For example, `123456789`. Note that this is different from the repository name.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "repository_owner": { "description": "The repository owner's username. For example, `octocat`." }, "repository_owner_id": { "description": "The repository owner's account ID. For example, `1234567`. Note that this is different from the owner's name.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "repositoryUrl": { "description": "The Git URL to the repository. For example, `git://github.com/octocat/hello-world.git`." }, "retention_days": { "description": "The number of days that workflow run logs and artifacts are kept." }, "run_id": { "description": "A unique number for each workflow run within a repository. This number does not change if you re-run the workflow run." }, "run_number": { "description": "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." }, "run_attempt": { "description": "A unique number for each attempt of a particular workflow run in a repository. This number begins at 1 for the workflow run's first attempt, and increments with each re-run." }, "secret_source": { "description": "The source of a secret used in a workflow. Possible values are `None`, `Actions`, `Dependabot`, or `Codespaces`." }, "server_url": { "description": "The URL of the GitHub server. For example: `https://github.com`." }, "sha": { "description": "The commit SHA that triggered the workflow. The value of this commit SHA depends on the event that triggered the workflow. For more information, see \"[Events that trigger workflows](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows).\" For example, `ffac537e6cbbf934b08745a378932722df287a53`." }, "token": { "description": "A token to authenticate on behalf of the GitHub App installed on your repository. This is functionally equivalent to the `GITHUB_TOKEN` secret. For more information, see \"[Automatic token authentication](https://docs.github.com/actions/security-guides/automatic-token-authentication).\"\nNote: This context property is set by the Actions runner, and is only available within the execution `steps` of a job. Otherwise, the value of this property will be `null`." }, "triggering_actor": { "description": "The username of the user that initiated the workflow run. If the workflow run is a re-run, this value may differ from `github.actor`. Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating the re-run (`github.triggering_actor`) has different privileges." }, "workflow": { "description": "The name of the workflow. If the workflow file doesn't specify a `name`, the value of this property is the full path of the workflow file in the repository." }, "workflow_ref": { "description": "The ref path to the workflow. For example, `octocat/hello-world/.github/workflows/my-workflow.yml@refs/heads/my_branch`.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "workflow_sha": { "description": "The commit SHA for the workflow file.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "workspace": { "description": "The default working directory on the runner for steps, and the default location of your repository when using the [`checkout`](https://github.com/actions/checkout) action." } }, "job": { "container": { "description": "Information about the job's container. For more information about containers, see \"[Running jobs in a container](https://docs.github.com/actions/using-jobs/running-jobs-in-a-container).\"" }, "container.id": { "description": "The ID of the container." }, "container.network": { "description": "The ID of the container network. The runner creates the network used by all containers in a job." }, "services": { "description": "The service containers created for a job. For more information about service containers, see \"[Using service containers](https://docs.github.com/actions/using-containerized-services/about-service-containers).\"" }, "services.<service_id>.id": { "description": "The ID of the service container." }, "services.<service_id>.network": { "description": "The ID of the service container network. The runner creates the network used by all containers in a job." }, "services.<service_id>.ports": { "description": "The exposed ports of the service container." }, "status": { "description": "The current status of the job. Possible values are `success`, `failure`, or `cancelled`." }, "check_run_id": { "description": "The unique identifier of the check run for this job." } }, "secrets": { "GITHUB_TOKEN": { "description": "Automatically created token for each workflow run. For more information, see \"[Automatic token authentication](https://docs.github.com/actions/security-guides/automatic-token-authentication).\"" } }, "jobs": { "outputs": { "description": "The set of outputs of a job in a reusable workflow." }, "result": { "description": "The result of a job in the reusable workflow. Possible values are `success`, `failure`, `cancelled`, or `skipped`." } }, "steps": { "outputs": { "description": "The set of outputs defined for the step. For more information, see \"[Metadata syntax for GitHub Actions](https://docs.github.com/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-docker-container-and-javascript-actions).\"" }, "conclusion": { "description": "The result of a completed step after [`continue-on-error`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error) is applied. Possible values are `success`, `failure`, `cancelled`, or `skipped`. When a `continue-on-error` step fails, the `outcome` is `failure`, but the final conclusion is `success`." }, "outcome": { "description": "The result of a completed step before [`continue-on-error`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error) is applied. Possible values are `success`, `failure`, `cancelled`, or `skipped`. When a `continue-on-error` step fails, the `outcome` is `failure`, but the final conclusion is `success`." } }, "runner": { "name": { "description": "The name of the runner executing the job." }, "os": { "description": "The operating system of the runner executing the job. Possible values are `Linux`, `Windows`, or `macOS`." }, "arch": { "description": "The architecture of the runner executing the job. Possible values are `X86`, `X64`, `ARM`, or `ARM64`." }, "temp": { "description": "The path to a temporary directory on the runner. This directory is emptied at the beginning and end of each job. Note that files will not be removed if the runner's user account does not have permission to delete them." }, "tool_cache": { "description": "The path to the directory containing preinstalled tools for GitHub-hosted runners. For more information, see \"[About GitHub-hosted runners](https://docs.github.com/actions/reference/specifications-for-github-hosted-runners/#supported-software).\"" }, "debug": { "description": "This is set only if [`ACTIONS_STEP_DEBUG`](https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging) is enabled, and always has the value of `\"1\"`. It can be useful as an indicator to enable additional debugging or verbose logging in your own job steps." }, "environment": { "description": "The environment of the runner executing the job. Possible values are `github-hosted` for GitHub-hosted runners, or `self-hosted` for self-hosted runners." }, "workspace": { "description": "The runner-specific working directory path for the job." } }, "strategy": { "fail-fast": { "description": "When `true`, all in-progress jobs are canceled if any job in a matrix fails. For more information, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast).\"" }, "job-index": { "description": "The index of the current job in the matrix. **Note:** This number is a zero-based number. The first job's index in the matrix is `0`." }, "job-total": { "description": "The total number of jobs in the matrix. **Note:** This number **is not** a zero-based number. For example, for a matrix with four jobs, the value of `job-total` is `4`." }, "max-parallel": { "description": "The maximum number of jobs that can run simultaneously when using a matrix job strategy. For more information, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymax-parallel).\"" } } }
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { DescriptionDictionary } from "@actions/expressions";
|
|
2
2
|
import { WorkflowContext } from "../context/workflow-context.js";
|
|
3
3
|
import { Mode } from "./default.js";
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Returns the github context with properties like actor, ref, sha, event, etc.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getGithubContext(workflowContext: WorkflowContext | undefined, mode: Mode): DescriptionDictionary;
|
|
5
8
|
//# sourceMappingURL=github.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../src/context-providers/github.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,qBAAqB,EAA0B,MAAM,sBAAsB,CAAC;AAG1F,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAKlC,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,GAAG,qBAAqB,
|
|
1
|
+
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../src/context-providers/github.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,qBAAqB,EAA0B,MAAM,sBAAsB,CAAC;AAG1F,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAKlC;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,eAAe,GAAG,SAAS,EAAE,IAAI,EAAE,IAAI,GAAG,qBAAqB,CAgEhH"}
|
|
@@ -3,6 +3,9 @@ import { Mode } from "./default.js";
|
|
|
3
3
|
import { getDescription } from "./descriptions.js";
|
|
4
4
|
import { getEventPayload, getSupportedEventTypes } from "./events/eventPayloads.js";
|
|
5
5
|
import { getInputsContext } from "./inputs.js";
|
|
6
|
+
/**
|
|
7
|
+
* Returns the github context with properties like actor, ref, sha, event, etc.
|
|
8
|
+
*/
|
|
6
9
|
export function getGithubContext(workflowContext, mode) {
|
|
7
10
|
// https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
|
|
8
11
|
const keys = [
|
|
@@ -63,6 +66,9 @@ export function getGithubContext(workflowContext, mode) {
|
|
|
63
66
|
};
|
|
64
67
|
}));
|
|
65
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Builds the github.event context based on workflow trigger configuration.
|
|
71
|
+
*/
|
|
66
72
|
function getEventContext(workflowContext, mode) {
|
|
67
73
|
const d = new DescriptionDictionary();
|
|
68
74
|
const eventsConfig = workflowContext?.template?.events;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.js","sourceRoot":"","sources":["../../src/context-providers/github.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,qBAAqB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAI1F,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,eAAe,EAAE,sBAAsB,EAAC,MAAM,2BAA2B,CAAC;AAClF,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAE7C,MAAM,UAAU,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"github.js","sourceRo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C,SAAS,CAAC,CAAC,CAAC;KAC7C;AACH,CAAC;AAED,SAAS,KAAK,CAAC,MAA6B,EAAE,OAA8B;IAC1E,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;QAC/B,IAAI,uBAAuB,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE;YACpC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YACxC,IAAI,aAAa,IAAI,uBAAuB,CAAC,aAAa,CAAC,EAAE;gBAC3D,2DAA2D;gBAC3D,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;gBAE9B,SAAS;aACV;SACF;QAED,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC;KAC3C;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { DescriptionDictionary } from "@actions/expressions";
|
|
2
2
|
import { WorkflowContext } from "../context/workflow-context.js";
|
|
3
|
+
/**
|
|
4
|
+
* Returns the job context with container, services, status, and check_run_id.
|
|
5
|
+
*/
|
|
3
6
|
export declare function getJobContext(workflowContext: WorkflowContext): DescriptionDictionary;
|
|
4
7
|
//# sourceMappingURL=job.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.d.ts","sourceRoot":"","sources":["../../src/context-providers/job.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAGjE,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"job.d.ts","sourceRoot":"","sources":["../../src/context-providers/job.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAGjE,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAG/D;;GAEG;AACH,wBAAgB,aAAa,CAAC,eAAe,EAAE,eAAe,GAAG,qBAAqB,CAoCrF"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { data, DescriptionDictionary } from "@actions/expressions";
|
|
2
2
|
import { isMapping, isSequence } from "@actions/workflow-parser";
|
|
3
|
+
import { getDescription } from "./descriptions.js";
|
|
4
|
+
/**
|
|
5
|
+
* Returns the job context with container, services, status, and check_run_id.
|
|
6
|
+
*/
|
|
3
7
|
export function getJobContext(workflowContext) {
|
|
4
8
|
// https://docs.github.com/en/actions/learn-github-actions/contexts#job-context
|
|
5
9
|
const jobContext = new DescriptionDictionary();
|
|
@@ -11,7 +15,7 @@ export function getJobContext(workflowContext) {
|
|
|
11
15
|
const jobContainer = job.container;
|
|
12
16
|
if (jobContainer && isMapping(jobContainer)) {
|
|
13
17
|
const containerContext = createContainerContext(jobContainer, false);
|
|
14
|
-
jobContext.add("container", containerContext);
|
|
18
|
+
jobContext.add("container", containerContext, getDescription("job", "container"));
|
|
15
19
|
}
|
|
16
20
|
// Services
|
|
17
21
|
const jobServices = job.services;
|
|
@@ -24,40 +28,34 @@ export function getJobContext(workflowContext) {
|
|
|
24
28
|
const serviceContext = createContainerContext(service.value, true);
|
|
25
29
|
servicesContext.add(service.key.toString(), serviceContext);
|
|
26
30
|
}
|
|
27
|
-
jobContext.add("services", servicesContext);
|
|
31
|
+
jobContext.add("services", servicesContext, getDescription("job", "services"));
|
|
28
32
|
}
|
|
29
33
|
// Status
|
|
30
|
-
jobContext.add("status", new data.
|
|
34
|
+
jobContext.add("status", new data.StringData(""), getDescription("job", "status"));
|
|
31
35
|
// Check run ID
|
|
32
|
-
jobContext.add("check_run_id", new data.
|
|
36
|
+
jobContext.add("check_run_id", new data.StringData(""), getDescription("job", "check_run_id"));
|
|
33
37
|
return jobContext;
|
|
34
38
|
}
|
|
35
39
|
function createContainerContext(container, isServices) {
|
|
36
|
-
const containerContext = new
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
ports.add(
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
// If the port isn't a mapping, just use null
|
|
53
|
-
ports.add(portParts[0], new data.Null());
|
|
40
|
+
const containerContext = new DescriptionDictionary();
|
|
41
|
+
// id and network are always available
|
|
42
|
+
containerContext.add("id", new data.StringData(""), getDescription("job", isServices ? "services.<service_id>.id" : "container.id"));
|
|
43
|
+
containerContext.add("network", new data.StringData(""), getDescription("job", isServices ? "services.<service_id>.network" : "container.network"));
|
|
44
|
+
// ports are only available for service containers (not job container)
|
|
45
|
+
if (isServices) {
|
|
46
|
+
const ports = new DescriptionDictionary();
|
|
47
|
+
for (const { key, value } of container) {
|
|
48
|
+
if (key.toString() === "ports" && isSequence(value)) {
|
|
49
|
+
for (const item of value) {
|
|
50
|
+
const portParts = item.toString().split(":");
|
|
51
|
+
// The key is the container port (second part if host:container format)
|
|
52
|
+
const containerPort = portParts.length === 2 ? portParts[1] : portParts[0];
|
|
53
|
+
ports.add(containerPort, new data.StringData(""));
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
containerContext.add(key.toString(), ports);
|
|
57
56
|
}
|
|
57
|
+
containerContext.add("ports", ports, getDescription("job", "services.<service_id>.ports"));
|
|
58
58
|
}
|
|
59
|
-
containerContext.add("id", new data.Null());
|
|
60
|
-
containerContext.add("network", new data.Null());
|
|
61
59
|
return containerContext;
|
|
62
60
|
}
|
|
63
61
|
//# sourceMappingURL=job.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.js","sourceRoot":"","sources":["../../src/context-providers/job.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAC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,EAAE;gBACnD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;oBACxB,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBAC7C,uEAAuE;oBACvE,MAAM,aAAa,GAAG,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;oBAC3E,KAAK,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;iBACnD;aACF;SACF;QACD,gBAAgB,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,6BAA6B,CAAC,CAAC,CAAC;KAC5F;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { WorkflowContext } from "../context/workflow-context.js";
|
|
2
2
|
import { TokenResult } from "../utils/find-token.js";
|
|
3
|
+
/**
|
|
4
|
+
* Checks if the token is an input value in a reusable workflow job's `with:` block.
|
|
5
|
+
*/
|
|
3
6
|
export declare function isReusableWorkflowJobInput(tokenResult: TokenResult): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Gets the description of an input from a called reusable workflow.
|
|
9
|
+
* When a workflow calls another workflow with `uses:`, this fetches the input's
|
|
10
|
+
* description from the called workflow's `workflow_call.inputs` definitions.
|
|
11
|
+
*/
|
|
4
12
|
export declare function getReusableWorkflowInputDescription(workflowContext: WorkflowContext, tokenResult: TokenResult): string;
|
|
5
13
|
//# sourceMappingURL=reusable-job-inputs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reusable-job-inputs.d.ts","sourceRoot":"","sources":["../../src/description-providers/reusable-job-inputs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AAEnD,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAM5E;AAED,wBAAgB,mCAAmC,CACjD,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,GACvB,MAAM,CAwBR"}
|
|
1
|
+
{"version":3,"file":"reusable-job-inputs.d.ts","sourceRoot":"","sources":["../../src/description-providers/reusable-job-inputs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AAEnD;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAM5E;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,CACjD,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,GACvB,MAAM,CAwBR"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { isMapping, isString } from "@actions/workflow-parser";
|
|
2
2
|
import { DESCRIPTION } from "@actions/workflow-parser/templates/template-constants";
|
|
3
|
+
/**
|
|
4
|
+
* Checks if the token is an input value in a reusable workflow job's `with:` block.
|
|
5
|
+
*/
|
|
3
6
|
export function isReusableWorkflowJobInput(tokenResult) {
|
|
4
7
|
return (tokenResult.parent?.definition?.key === "workflow-job-with" &&
|
|
5
8
|
tokenResult.token !== null &&
|
|
6
9
|
isString(tokenResult.token));
|
|
7
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Gets the description of an input from a called reusable workflow.
|
|
13
|
+
* When a workflow calls another workflow with `uses:`, this fetches the input's
|
|
14
|
+
* description from the called workflow's `workflow_call.inputs` definitions.
|
|
15
|
+
*/
|
|
8
16
|
export function getReusableWorkflowInputDescription(workflowContext, tokenResult) {
|
|
9
17
|
const reusableWorkflowJob = workflowContext.reusableWorkflowJob;
|
|
10
18
|
if (!reusableWorkflowJob) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reusable-job-inputs.js","sourceRoot":"","sources":["../../src/description-providers/reusable-job-inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAC,WAAW,EAAC,MAAM,uDAAuD,CAAC;AAIlF,MAAM,UAAU,0BAA0B,CAAC,WAAwB;IACjE,OAAO,CACL,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,mBAAmB;QAC3D,WAAW,CAAC,KAAK,KAAK,IAAI;QAC1B,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAC5B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,eAAgC,EAChC,WAAwB;IAExB,MAAM,mBAAmB,GAAG,eAAe,CAAC,mBAAmB,CAAC;IAEhE,IAAI,CAAC,mBAAmB,EAAE;QACxB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,SAAS,GAAG,WAAW,CAAC,KAAK,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC;IAC9F,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,EAAE,CAAC;KACX;IAED,qDAAqD;IACrD,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,EAAE;QAC5C,MAAM,UAAU,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5E,IAAI,UAAU,IAAI,SAAS,CAAC,UAAU,CAAC,EAAE;YACvC,MAAM,WAAW,GAAG,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACjD,IAAI,WAAW,IAAI,QAAQ,CAAC,WAAW,CAAC,EAAE;gBACxC,OAAO,WAAW,CAAC,KAAK,CAAC;aAC1B;SACF;KACF;IAED,OAAO,EAAE,CAAC;AACZ,C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C"}
|
package/dist/document-links.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { TextDocument } from "vscode-languageserver-textdocument";
|
|
2
2
|
import { DocumentLink } from "vscode-languageserver-types";
|
|
3
|
+
/**
|
|
4
|
+
* Generates clickable links for action references and reusable workflows.
|
|
5
|
+
*/
|
|
3
6
|
export declare function documentLinks(document: TextDocument, workspace: string | undefined): Promise<DocumentLink[]>;
|
|
4
7
|
//# sourceMappingURL=document-links.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-links.d.ts","sourceRoot":"","sources":["../src/document-links.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"document-links.d.ts","sourceRoot":"","sources":["../src/document-links.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAYzD;;GAEG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CASlH"}
|