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
8 changes: 7 additions & 1 deletion .github/workflows/etl-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@ on:
# The success conclusion gate below skips ETL when a deploy was skipped.
workflows: ["Deploy to Prod (fabric-cicd)", "Deploy to Prod (Bulk API)"]
types: [completed]
# Manual trigger so operators can re-run the ETL without having to fake a
# deploy. The Prod GitHub Environment protection rules still apply to the
# reusable workflow's job, so any approval gates remain in effect.
workflow_dispatch:

permissions:
contents: read

jobs:
run-etl:
name: Run ETL
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# Run when triggered manually, OR when the upstream deploy workflow succeeded.
# workflow_run-triggered runs whose deploy was skipped/failed should not run.
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/workflows/reusable-fabric-etl.yml
with:
environment: Prod
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/etl-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,22 @@ on:
# The success conclusion gate below skips ETL when a deploy was skipped.
workflows: ["Deploy to Test (fabric-cicd)", "Deploy to Test (Bulk API)"]
types: [completed]
# Manual trigger so operators can re-run the ETL without having to fake a
# deploy. Useful when a workflow_run-triggered run fails because of a
# transient issue or a workflow file fix that landed on main after the run
# was already created (workflow_run reruns use the workflow file frozen at
# original trigger time, not the current default branch).
workflow_dispatch:

permissions:
contents: read

jobs:
run-etl:
name: Run ETL
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# Run when triggered manually, OR when the upstream deploy workflow succeeded.
# workflow_run-triggered runs whose deploy was skipped/failed should not run.
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/workflows/reusable-fabric-etl.yml
with:
environment: Test
Expand Down