Skip to content

Commit

Permalink
chore(ci): run pull_request workflows when undrafting (#479)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
iainlane authored Oct 17, 2024
1 parent 5ce770e commit 06cb229
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-trigger-argo-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
pull_request:
paths:
- "actions/trigger-argo-workflow/**"
types:
- edited
- opened
- ready_for_review
- synchronize
merge_group:

jobs:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
pull_request:
branches:
- "main"
types:
- edited
- opened
- ready_for_review
- synchronize

schedule:
- cron: "21 5 * * 3"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
paths:
- .github/renovate-config.json
- .github/workflows/renovate.yml
types:
- edited
- opened
- ready_for_review
- synchronize

push:
branches:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-find-pr-for-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
paths:
- actions/find-pr-for-commit/**
- .github/workflows/test-find-pr-for-commit.yml
types:
- edited
- opened
- ready_for_review
- synchronize

permissions:
contents: read
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-get-vault-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
paths:
- "actions/get-vault-secrets/**"
- ".github/workflows/test-get-vault-secrets.yaml"
types:
- edited
- opened
- ready_for_review
- synchronize

merge_group:

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-lint-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@ on:
paths:
- .github/workflows/test-lint-pr-title.yml
- actions/lint-pr-title/**

pull_request:
paths:
- .github/workflows/test-lint-pr-title.yml
- actions/lint-pr-title/**
types:
- edited
- opened
- ready_for_review
- synchronize

merge_group:

jobs:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-login-to-gar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
paths:
- "actions/login-to-gar/**"
- ".github/workflows/test-login-to-gar.yaml"
types:
- edited
- opened
- ready_for_review
- synchronize

merge_group:

permissions:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-publish-techdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ on:
- .github/workflows/test-publish-techdocs.yml
- .github/workflows/test-techdocs-rewrite-relative-links.yml
- techdocs-rewrite-relative-links/**
types:
- edited
- opened
- ready_for_review
- synchronize

merge_group:

concurrency:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-setup-argo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ on:
paths:
- actions/setup-argo/**
- .github/workflows/test-setup-argo.yml
types:
- edited
- opened
- ready_for_review
- synchronize

merge_group:

concurrency:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-techdocs-rewrite-relative-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
paths:
- "actions/techdocs-rewrite-relative-links/**"
- ".github/workflows/test-techdocs-rewrite-relative-links.yaml"
types:
- edited
- opened
- ready_for_review
- synchronize

merge_group:

jobs:
Expand Down

0 comments on commit 06cb229

Please sign in to comment.