main 98594d0

doc.go RawHistoryFolder

1// SPDX-License-Identifier: MIT
2
3// Package action reads GitHub Actions action.yml manifests the way GitHub
4// does: the model it returns is what the runner's ActionManifestManager gets
5// out of the same file, with the same errors.
6//
7// [Parse] follows the C# runner (actions/runner, Runner.Worker/
8// ActionManifestManagerLegacy.cs, which is what ActionManifestManagerWrapper
9// runs; the newer ActionManifestManager only runs next to it, behind a
10// comparison flag, and its result is thrown away). The runner reads the file
11// with its own schema, action_yaml.json, which is the "action-root" definition
12// of the schema that this package vendors, action-v1.0.json of the npm package
13// @actions/workflow-parser 0.3.61 (MIT, GitHub, actions/languageservices): that
14// definition accepts unknown top-level keys (icon, color, branding...), needs
15// no name and no description, and checks the keys under "runs" and the
16// contexts that expressions may use. [ParseStrict] reads the file against the
17// same schema's "action-root-strict" definition instead, which is the language
18// service's linter: name, description and runs are required, branding and
19// "using" are checked and unknown top-level keys are refused. GitHub accepts
20// files that the strict form refuses; use it to lint, not to run.
21//
22// The steps of a composite action are [workflow.Step] values, converted the way
23// the runner converts them (which is not the way package workflow converts the
24// steps of a workflow file). Expressions stay unevaluated [template.Token]
25// values; package template evaluates them.
26//
27// Errors read like the runner's: positioned messages ("action.yml (Line: 3,
28// Col: 5): Unexpected value 'x'") and, after them, the exceptions that the
29// runner reports with their .NET class name ("System.ArgumentNullException:
30// ..."). The runner prints exception stack traces after them; those are not
31// reproduced. PORTING.md lists what differs from the runner and from the
32// language service, and what was checked against which source.
33package action

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 3

↑↓ moveenter openesc close