[nolist] dont run pre/release on forks, and dont run prerelease if commit is nolist
This commit is contained in:
@@ -10,6 +10,9 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: polymart_deploy
|
environment: polymart_deploy
|
||||||
|
if: |
|
||||||
|
!github.event.pull_request.head.repo.fork &&
|
||||||
|
!contains(github.event.head_commit.message, '[nolist]')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: polymart_deploy
|
environment: polymart_deploy
|
||||||
|
if: ${{ !github.event.pull_request.head.repo.fork }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
|
|||||||
Reference in New Issue
Block a user