Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/scenarios/10-inline-job-attributes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ steps:
- "group: sign-${{ github.ref }}"
- "cancel-in-progress: true"
- "build-app:"
- "uses: ./build.yaml"
- "uses: ./.github/workflows/build.yaml"
2 changes: 1 addition & 1 deletion e2e/scenarios/12-inline-run-callback.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ steps:
- path: ".github/workflows/orchestrate.yaml"
contains:
- "build-app:"
- "uses: ./build.yaml"
- "uses: ./.github/workflows/build.yaml"
- "build-smoke:"
- "shell: bash"
- 'echo "smoke check"'
10 changes: 9 additions & 1 deletion e2e/scenarios/orchestrate/env-gates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ description: |
the generated orchestrate.yaml deploy job carries a job-level environment:
key pointing at the configured GitHub Environment name (#11).

The job-level environment: key is only valid on a cascade-owned steps job, so
the gated deploy here is an inline run: deploy. A reusable-workflow (uses:)
deploy correctly omits the job-level key, since GitHub Actions forbids it on a
uses: caller job (#137/#138); the environment name is threaded as a with:
input instead in that case.

This is a generator-output verification scenario. The GitHub Environment's
actual protection rules (required reviewers, wait timers, branch policy,
scoped secrets) live in the repository's GitHub settings and are not
Expand All @@ -18,7 +24,9 @@ config:
triggers: ["src/**"]
deploys:
- name: cdk
workflow: deploy.yaml
run: |
echo "deploying cdk"
shell: bash
triggers: ["cdk/**"]
environment_config:
prod:
Expand Down
Loading