mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
ci: add conditional restrictions (#264)
This commit is contained in:
parent
c2e5bec81e
commit
e4dceb6325
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -8,6 +8,7 @@ on:
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'doocs/md'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
1
.github/workflows/preview-build.yml
vendored
1
.github/workflows/preview-build.yml
vendored
@ -7,6 +7,7 @@ on:
|
||||
jobs:
|
||||
build-preview:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'doocs/md'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
4
.github/workflows/preview-deploy.yml
vendored
4
.github/workflows/preview-deploy.yml
vendored
@ -9,7 +9,7 @@ on:
|
||||
jobs:
|
||||
success:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
|
||||
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' && github.repository == 'doocs/md'
|
||||
steps:
|
||||
- name: Download PR artifact
|
||||
uses: dawidd6/action-download-artifact@v2
|
||||
@ -63,7 +63,7 @@ jobs:
|
||||
|
||||
failed:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
|
||||
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' && github.repository == 'doocs/md'
|
||||
steps:
|
||||
- name: Download PR artifact
|
||||
uses: dawidd6/action-download-artifact@v2
|
||||
|
1
.github/workflows/preview-start.yml
vendored
1
.github/workflows/preview-start.yml
vendored
@ -5,6 +5,7 @@ on: pull_request_target
|
||||
jobs:
|
||||
preview:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'doocs/md'
|
||||
steps:
|
||||
- name: Create
|
||||
uses: actions-cool/maintain-one-comment@v3
|
||||
|
1
.github/workflows/release-cli.yml
vendored
1
.github/workflows/release-cli.yml
vendored
@ -8,6 +8,7 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'doocs/md'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
# Setup .npmrc file to publish to npm
|
||||
|
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -9,6 +9,7 @@ jobs:
|
||||
build:
|
||||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'doocs/md'
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
Loading…
Reference in New Issue
Block a user