diff options
author | Patric Stout <truebrain@openttd.org> | 2021-05-20 19:12:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 19:12:33 +0200 |
commit | 3477405e868f9d61cb3ece4f034f3307b14e9e98 (patch) | |
tree | ffb47f9f26c133902facfb43533ce5a34f4333e4 /.github/workflows/ci-build.yml | |
parent | ca9f9b84d3f6bad958a5470ac7749066ce966cc8 (diff) | |
download | openttd-3477405e868f9d61cb3ece4f034f3307b14e9e98.tar.xz |
Change: [Actions] use newly created Actions instead of custom shell-scripting (#9284)
Diffstat (limited to '.github/workflows/ci-build.yml')
-rw-r--r-- | .github/workflows/ci-build.yml | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index e0707291c..4dea7350c 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -326,34 +326,8 @@ jobs: if: always() && github.event_name == 'pull_request' - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - name: Get check suite ID - id: check_suite_id - uses: octokit/request-action@v2.x - with: - route: GET /repos/{repository}/actions/runs/{run_id} - repository: ${{ github.repository }} - run_id: ${{ github.run_id }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Get check runs - id: check_runs - uses: octokit/request-action@v2.x - with: - route: GET /repos/{repository}/check-suites/{check_suite_id}/check-runs - repository: ${{ github.repository }} - check_suite_id: ${{ fromJson(steps.check_suite_id.outputs.data).check_suite_id }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check annotations - shell: bash - run: | - echo '[ - ${{ toJson(fromJson(steps.check_runs.outputs.data).check_runs.*.output.title) }}, ${{ toJson(fromJson(steps.check_runs.outputs.data).check_runs.*.output.summary) }} - ]' | jq '.[0] as $t | .[1] as $s | reduce range(.[0] | length) as $i ([]; . + [if $t[$i] then $t[$i] + ": " + $s[$i] else empty end]) | .[]' - - exit $(echo '${{ toJson(fromJson(steps.check_runs.outputs.data).check_runs.*.output.annotations_count) }}' | jq 'add') + uses: OpenTTD/actions/annotation-check@v2 |