Skip to content

Commit 7f056b0

Browse files
authored
Merge pull request #1017 from bnbarham/update-automerger
[CI] Remove skip for ready for review
2 parents e70ab31 + 0d998b3 commit 7f056b0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/pull_request.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Pull request
22

3+
# PRs created by GitHub Actions don't kick off further actions (https://github.com/peter-evans/create-pull-request/blob/d57e551ebc1a16dee0b8c9ea6d24dba7627a6e35/docs/concepts-guidelines.md#triggering-further-workflow-runs).
4+
# As a workaround, we mark automerge PRs that are created by GitHub actions as draft and trigger the GitHub actions by marking the PR as ready for review. We'd prefer not re-triggering testing on a normal user's PR in this case, but skipping them causes the checks to reset.
5+
36
on:
47
pull_request:
58
types: [opened, reopened, synchronize, ready_for_review]
@@ -12,17 +15,11 @@ jobs:
1215
tests:
1316
name: Test
1417
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
15-
# PRs created by GitHub Actions don't kick off further actions (https://github.com/peter-evans/create-pull-request/blob/d57e551ebc1a16dee0b8c9ea6d24dba7627a6e35/docs/concepts-guidelines.md#triggering-further-workflow-runs).
16-
# As a workaround, we mark automerge PRs that are created by GitHub actions as draft and trigger the GitHub actions by marking the PR as ready for review. But we don't want to re-trigger testing this when a normal user's PR is marked as ready for review.
17-
if: (github.event.action != 'ready_for_review') || (github.event.action == 'ready_for_review' && github.event.pull_request.user.login == 'github-actions[bot]')
1818
with:
1919
linux_exclude_swift_versions: "[{\"swift_version\": \"5.8\"}]"
2020
soundness:
2121
name: Soundness
2222
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
23-
# PRs created by GitHub Actions don't kick off further actions (https://github.com/peter-evans/create-pull-request/blob/d57e551ebc1a16dee0b8c9ea6d24dba7627a6e35/docs/concepts-guidelines.md#triggering-further-workflow-runs).
24-
# As a workaround, we mark automerge PRs that are created by GitHub actions as draft and trigger the GitHub actions by marking the PR as ready for review. But we don't want to re-trigger testing this when a normal user's PR is marked as ready for review.
25-
if: (github.event.action != 'ready_for_review') || (github.event.action == 'ready_for_review' && github.event.pull_request.user.login == 'github-actions[bot]')
2623
with:
2724
license_header_check_project_name: "Swift.org"
2825
api_breakage_check_allowlist_path: "api-breakages.txt"

0 commit comments

Comments
 (0)