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
Copy file name to clipboardExpand all lines: docs/checks.md
+14-4
Original file line number
Diff line number
Diff line change
@@ -2642,6 +2642,12 @@ jobs:
2642
2642
env:
2643
2643
# ERROR: 'env' context is not available here
2644
2644
NAME: ${{ env.NAME }}
2645
+
services:
2646
+
redis:
2647
+
image: redis
2648
+
env:
2649
+
# ERROR: No context is allowed here
2650
+
COMMIT_SHA: ${{ github.sha }}
2645
2651
steps:
2646
2652
- env:
2647
2653
# OK: 'env' context is available here
@@ -2663,13 +2669,17 @@ test.yaml:18:17: context "env" is not allowed here. available contexts are "gith
2663
2669
|
2664
2670
18 | NAME: ${{ env.NAME }}
2665
2671
| ^~~~~~~~
2666
-
test.yaml:24:33: calling function "success" is not allowed here. "success" is only available in "jobs.<job_id>.if", "jobs.<job_id>.steps.if". see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details [expression]
2672
+
test.yaml:24:27: context "github" is not allowed here. no context is available here. see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details [expression]
2673
+
|
2674
+
24 | COMMIT_SHA: ${{ github.sha }}
2675
+
| ^~~~~~~~~~
2676
+
test.yaml:30:33: calling function "success" is not allowed here. "success" is only available in "jobs.<job_id>.if", "jobs.<job_id>.steps.if". see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details [expression]
notes="available context is "+quotes(sema.availableContexts)
478
+
default:
479
+
notes="available contexts are "+quotes(sema.availableContexts)
479
480
}
480
481
sema.errorf(
481
482
n,
482
-
"context %q is not allowed here. available %s %s. see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details",
483
+
"context %q is not allowed here. %s. see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details",
0 commit comments