Skip to content

Commit d82f164

Browse files
committed
ci: Update ci.yml (#490)
1 parent 2015ebd commit d82f164

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
name: Deploy
4141
runs-on: ubuntu-latest
4242
needs: [test, lint]
43-
if: github.event_name != 'pull_request'
43+
if: ${{ github.event_name != 'pull_request' && github.repository == '5e-bits/5e-database' }}
4444
steps:
4545
- uses: actions/checkout@v2
4646
- name: Use Node.js 14.x
@@ -58,7 +58,7 @@ jobs:
5858
name: Github Release
5959
runs-on: ubuntu-latest
6060
needs: [deploy]
61-
if: github.event_name != 'pull_request'
61+
if: ${{ github.event_name != 'pull_request' && github.repository == '5e-bits/5e-database' }}
6262
outputs:
6363
new_release_published: ${{ steps.semantic.outputs.steps.semantic.outputs.new_release_published}}
6464
version: ${{ steps.semantic.outputs.new_release_version }}
@@ -77,7 +77,7 @@ jobs:
7777
name: Container Release
7878
runs-on: ubuntu-latest
7979
needs: [github-release]
80-
if: ${{needs.github-release.outputs.new_release_published}} == 'true'
80+
if: ${{needs.github-release.outputs.new_release_published == 'true' && github.repository == '5e-bits/5e-database' }}
8181
env:
8282
REGISTRY: ghcr.io
8383
IMAGE_NAME: ${{ github.repository }}
@@ -106,7 +106,7 @@ jobs:
106106
name: Trigger downstream
107107
runs-on: ubuntu-20.04
108108
needs: deploy
109-
if: github.ref == 'refs/heads/main'
109+
if: ${{ github.ref == 'refs/heads/main' && github.repository == '5e-bits/5e-database' }}
110110
steps:
111111
- name: Trigger downstream
112112
uses: peter-evans/repository-dispatch@v1

0 commit comments

Comments
 (0)