Skip to content

Commit b3fcf14

Browse files
authored
[ci] Update reusable_release.yml to only run tests on the main branch (#11410)
*Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.* *List which issues are fixed by this PR. You must list at least one issue.* ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 4763d4f commit b3fcf14

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/reusable_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
# because there doesn't appear to be anything to wait for. To avoid that,
4343
# explicitly wait for one LUCI test by name first.
4444
- name: Wait for test check-in
45+
if: inputs.branch-name == 'main'
4546
uses: lewagon/wait-on-check-action@a08fbe2b86f9336198f33be6ad9c16b96f92799c
4647
with:
4748
ref: ${{ github.sha }}
@@ -54,6 +55,7 @@ jobs:
5455

5556
# This workflow should be the last to run. So wait for all the other tests to succeed.
5657
- name: Wait on all tests
58+
if: inputs.branch-name == 'main'
5759
uses: lewagon/wait-on-check-action@a08fbe2b86f9336198f33be6ad9c16b96f92799c
5860
with:
5961
ref: ${{ github.sha }}

0 commit comments

Comments
 (0)