File tree Expand file tree Collapse file tree 1 file changed +0
-36
lines changed
Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,10 @@ concurrency:
88 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
99 cancel-in-progress : true
1010
11- permissions :
12- checks : write
13-
1411jobs :
1512 buildForAllPlatformsMacOS :
1613 name : ${{ matrix.targetPlatform }} on ${{ matrix.unityVersion }}
1714 runs-on : macos-latest
18- continue-on-error : true
1915 strategy :
2016 fail-fast : false
2117 matrix :
8985 name : Build ${{ matrix.targetPlatform }} on MacOS (${{ matrix.unityVersion }})${{ matrix.buildProfile && ' With Build Profile' || '' }}
9086 path : build
9187 retention-days : 14
92-
93- markUnstableBuilds :
94- name : Mark unstable macOS builds
95- needs : buildForAllPlatformsMacOS
96- if : always()
97- runs-on : ubuntu-latest
98- steps :
99- - uses : actions/github-script@v7
100- with :
101- script : |
102- const { data: checkRuns } = await github.rest.checks.listForRef({
103- owner: context.repo.owner,
104- repo: context.repo.repo,
105- ref: context.sha,
106- per_page: 100,
107- });
108-
109- for (const run of checkRuns.check_runs) {
110- if (run.conclusion !== 'failure' || run.app?.slug !== 'github-actions') continue;
111- if (!run.name.includes('StandaloneOSX') && !run.name.includes('iOS')) continue;
112-
113- await github.rest.checks.update({
114- owner: context.repo.owner,
115- repo: context.repo.repo,
116- check_run_id: run.id,
117- conclusion: 'neutral',
118- output: {
119- title: `${run.name} (unstable)`,
120- summary: 'This macOS build is unstable and its failure does not block merging.',
121- },
122- });
123- }
You can’t perform that action at this time.
0 commit comments