only build on master push
This commit is contained in:
parent
0d1146d2ee
commit
15e1f44e7a
1 changed files with 4 additions and 10 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
|
@ -1,20 +1,14 @@
|
||||||
name: Build-CI
|
name: Build-CI
|
||||||
|
|
||||||
on: [pull_request_target, push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
approve: # First step
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Approve
|
|
||||||
run: echo For security reasons, all pull requests to this repository need to be approved first before running any automated CI.
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
needs: [approve] # Require the first step to finish
|
|
||||||
environment:
|
environment:
|
||||||
name: IO
|
name: IO
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue