From 499b8f5791bc5ce35b4df512bddee45000dde785 Mon Sep 17 00:00:00 2001 From: chyyran Date: Wed, 14 Feb 2024 21:37:00 -0500 Subject: [PATCH] ci: make package-obs require approval from maintainers --- .github/workflows/package-obs.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package-obs.yml b/.github/workflows/package-obs.yml index 02d0161..a5fa750 100644 --- a/.github/workflows/package-obs.yml +++ b/.github/workflows/package-obs.yml @@ -1,14 +1,20 @@ name: build Linux packages with Open Build Service on: - pull_request: + pull_request_target: branches: [ "master" ] env: CARGO_TERM_COLOR: always jobs: + approve-obs-build: # First step + runs-on: ubuntu-latest + steps: + - name: Approve + run: echo OBS build CI test runs need to be approved by a maintainer. build-obs-binary: - if: github.repository == 'SnowflakePowered/librashader' + environment: + name: obs-build-env strategy: matrix: include: @@ -22,6 +28,7 @@ jobs: spec: PKGBUILD can_fail: false runs-on: ubuntu-latest + needs: [approve-obs-build] continue-on-error: ${{ matrix.can_fail }} container: image: fedora:39