Skip to content

Commit 68db375

Browse files
Merge pull request #30 from michaeldeongreen/test
Promote ETL workflow_dispatch trigger to main
2 parents db36445 + 8481a0b commit 68db375

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/etl-prod.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@ on:
1515
# The success conclusion gate below skips ETL when a deploy was skipped.
1616
workflows: ["Deploy to Prod (fabric-cicd)", "Deploy to Prod (Bulk API)"]
1717
types: [completed]
18+
# Manual trigger so operators can re-run the ETL without having to fake a
19+
# deploy. The Prod GitHub Environment protection rules still apply to the
20+
# reusable workflow's job, so any approval gates remain in effect.
21+
workflow_dispatch:
1822

1923
permissions:
2024
contents: read
2125

2226
jobs:
2327
run-etl:
2428
name: Run ETL
25-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
29+
# Run when triggered manually, OR when the upstream deploy workflow succeeded.
30+
# workflow_run-triggered runs whose deploy was skipped/failed should not run.
31+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
2632
uses: ./.github/workflows/reusable-fabric-etl.yml
2733
with:
2834
environment: Prod

.github/workflows/etl-test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,22 @@ on:
1515
# The success conclusion gate below skips ETL when a deploy was skipped.
1616
workflows: ["Deploy to Test (fabric-cicd)", "Deploy to Test (Bulk API)"]
1717
types: [completed]
18+
# Manual trigger so operators can re-run the ETL without having to fake a
19+
# deploy. Useful when a workflow_run-triggered run fails because of a
20+
# transient issue or a workflow file fix that landed on main after the run
21+
# was already created (workflow_run reruns use the workflow file frozen at
22+
# original trigger time, not the current default branch).
23+
workflow_dispatch:
1824

1925
permissions:
2026
contents: read
2127

2228
jobs:
2329
run-etl:
2430
name: Run ETL
25-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
31+
# Run when triggered manually, OR when the upstream deploy workflow succeeded.
32+
# workflow_run-triggered runs whose deploy was skipped/failed should not run.
33+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
2634
uses: ./.github/workflows/reusable-fabric-etl.yml
2735
with:
2836
environment: Test

0 commit comments

Comments
 (0)