build: Skip release check on pull requests

This takes a long time and duplicates existing checks on the pull
requests.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
(cherry picked from commit 022f375ef86f6b099b68144c9a85dcecc95492ef)
This commit is contained in:
Rob Bradford 2024-02-28 13:16:18 +00:00 committed by Bo Chen
parent f4c85aef89
commit 1dff2503a6

View File

@ -1,9 +1,9 @@
name: Cloud Hypervisor Release
on: [pull_request, create, merge_group]
on: [create, merge_group]
jobs:
release:
if: (github.event_name == 'create' && github.event.ref_type == 'tag') || github.event_name == 'pull_request' || github.event_name == 'merge_group'
if: (github.event_name == 'create' && github.event.ref_type == 'tag') || github.event_name == 'merge_group'
name: Release
runs-on: ubuntu-latest
steps: