ci: make package-obs require approval from maintainers
This commit is contained in:
parent
e944330692
commit
499b8f5791
1 changed files with 9 additions and 2 deletions
11
.github/workflows/package-obs.yml
vendored
11
.github/workflows/package-obs.yml
vendored
|
@ -1,14 +1,20 @@
|
||||||
name: build Linux packages with Open Build Service
|
name: build Linux packages with Open Build Service
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request_target:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
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:
|
build-obs-binary:
|
||||||
if: github.repository == 'SnowflakePowered/librashader'
|
environment:
|
||||||
|
name: obs-build-env
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
@ -22,6 +28,7 @@ jobs:
|
||||||
spec: PKGBUILD
|
spec: PKGBUILD
|
||||||
can_fail: false
|
can_fail: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: [approve-obs-build]
|
||||||
continue-on-error: ${{ matrix.can_fail }}
|
continue-on-error: ${{ matrix.can_fail }}
|
||||||
container:
|
container:
|
||||||
image: fedora:39
|
image: fedora:39
|
||||||
|
|
Loading…
Add table
Reference in a new issue