gpu-dawn: CI: correct actions syntax for workflow_run conclusion

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-02-12 22:34:47 -07:00
parent c78d23f9fe
commit bc4abbdfa6

View file

@ -7,11 +7,10 @@ on:
jobs: jobs:
# TODO(build-system): enable x86 Linux CI here, dependency cycle in build.zig # TODO(build-system): enable x86 Linux CI here, dependency cycle in build.zig
# x86_64-linux: # x86_64-linux:
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
# runs-on: ubuntu-latest # runs-on: ubuntu-latest
# # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push # # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push
# # to the branch. # # to the branch.
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository # if: github.event.workflow_run.conclusion == 'success' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
# steps: # steps:
# - name: Checkout # - name: Checkout
# uses: actions/checkout@v2 # uses: actions/checkout@v2
@ -41,11 +40,10 @@ jobs:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TODO(build-system): enable windows CI here once gpu-dawn builds under Windows # TODO(build-system): enable windows CI here once gpu-dawn builds under Windows
# x86_64-windows: # x86_64-windows:
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
# runs-on: windows-latest # runs-on: windows-latest
# # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push # # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push
# # to the branch. # # to the branch.
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository # if: github.event.workflow_run.conclusion == 'success' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
# steps: # steps:
# - name: Checkout # - name: Checkout
# uses: actions/checkout@v2 # uses: actions/checkout@v2
@ -61,11 +59,10 @@ jobs:
# run: zig build install -Dfrom-source=true # run: zig build install -Dfrom-source=true
# # TODO: upload step for Windows # # TODO: upload step for Windows
x86_64-macos: x86_64-macos:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: macos-latest runs-on: macos-latest
# We want to run on external PRs, but not on our own internal PRs as they'll be run by the push # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push
# to the branch. # to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository if: github.event.workflow_run.conclusion == 'success' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2