Skip to content

Commit 06cb229

Browse files
authored
chore(ci): run pull_request workflows when undrafting (#479)
We have the GitHub Actions bot user create release PRs, and this user doesn't trigger workflows. Fortunately, since we create the PRs in draft mode and a human undrafts to make a release, we can use this as a trigger to run workflows. This only works if the workflows trigger when undrafted. Add that here. This is the same approach we're taking in `wait-for-github` and it works fine there.
1 parent 5ce770e commit 06cb229

10 files changed

+56
-0
lines changed

.github/workflows/build-trigger-argo-workflow.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
pull_request:
1010
paths:
1111
- "actions/trigger-argo-workflow/**"
12+
types:
13+
- edited
14+
- opened
15+
- ready_for_review
16+
- synchronize
1217
merge_group:
1318

1419
jobs:

.github/workflows/codeql.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
pull_request:
99
branches:
1010
- "main"
11+
types:
12+
- edited
13+
- opened
14+
- ready_for_review
15+
- synchronize
1116

1217
schedule:
1318
- cron: "21 5 * * 3"

.github/workflows/renovate.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
paths:
99
- .github/renovate-config.json
1010
- .github/workflows/renovate.yml
11+
types:
12+
- edited
13+
- opened
14+
- ready_for_review
15+
- synchronize
1116

1217
push:
1318
branches:

.github/workflows/test-find-pr-for-commit.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
paths:
1212
- actions/find-pr-for-commit/**
1313
- .github/workflows/test-find-pr-for-commit.yml
14+
types:
15+
- edited
16+
- opened
17+
- ready_for_review
18+
- synchronize
1419

1520
permissions:
1621
contents: read

.github/workflows/test-get-vault-secrets.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
paths:
1313
- "actions/get-vault-secrets/**"
1414
- ".github/workflows/test-get-vault-secrets.yaml"
15+
types:
16+
- edited
17+
- opened
18+
- ready_for_review
19+
- synchronize
1520

1621
merge_group:
1722

.github/workflows/test-lint-pr-title.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@ on:
66
paths:
77
- .github/workflows/test-lint-pr-title.yml
88
- actions/lint-pr-title/**
9+
910
pull_request:
1011
paths:
1112
- .github/workflows/test-lint-pr-title.yml
1213
- actions/lint-pr-title/**
14+
types:
15+
- edited
16+
- opened
17+
- ready_for_review
18+
- synchronize
19+
1320
merge_group:
1421

1522
jobs:

.github/workflows/test-login-to-gar.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ on:
1212
paths:
1313
- "actions/login-to-gar/**"
1414
- ".github/workflows/test-login-to-gar.yaml"
15+
types:
16+
- edited
17+
- opened
18+
- ready_for_review
19+
- synchronize
20+
1521
merge_group:
1622

1723
permissions:

.github/workflows/test-publish-techdocs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ on:
1919
- .github/workflows/test-publish-techdocs.yml
2020
- .github/workflows/test-techdocs-rewrite-relative-links.yml
2121
- techdocs-rewrite-relative-links/**
22+
types:
23+
- edited
24+
- opened
25+
- ready_for_review
26+
- synchronize
27+
2228
merge_group:
2329

2430
concurrency:

.github/workflows/test-setup-argo.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ on:
1313
paths:
1414
- actions/setup-argo/**
1515
- .github/workflows/test-setup-argo.yml
16+
types:
17+
- edited
18+
- opened
19+
- ready_for_review
20+
- synchronize
21+
1622
merge_group:
1723

1824
concurrency:

.github/workflows/test-techdocs-rewrite-relative-links.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ on:
1212
paths:
1313
- "actions/techdocs-rewrite-relative-links/**"
1414
- ".github/workflows/test-techdocs-rewrite-relative-links.yaml"
15+
types:
16+
- edited
17+
- opened
18+
- ready_for_review
19+
- synchronize
20+
1521
merge_group:
1622

1723
jobs:

0 commit comments

Comments
 (0)