Skip to content

Commit

Permalink
ci: Update ci.yml (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
bagelbits committed Jul 18, 2022
1 parent 2015ebd commit d82f164
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
name: Deploy
runs-on: ubuntu-latest
needs: [test, lint]
if: github.event_name != 'pull_request'
if: ${{ github.event_name != 'pull_request' && github.repository == '5e-bits/5e-database' }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
Expand All @@ -58,7 +58,7 @@ jobs:
name: Github Release
runs-on: ubuntu-latest
needs: [deploy]
if: github.event_name != 'pull_request'
if: ${{ github.event_name != 'pull_request' && github.repository == '5e-bits/5e-database' }}
outputs:
new_release_published: ${{ steps.semantic.outputs.steps.semantic.outputs.new_release_published}}
version: ${{ steps.semantic.outputs.new_release_version }}
Expand All @@ -77,7 +77,7 @@ jobs:
name: Container Release
runs-on: ubuntu-latest
needs: [github-release]
if: ${{needs.github-release.outputs.new_release_published}} == 'true'
if: ${{needs.github-release.outputs.new_release_published == 'true' && github.repository == '5e-bits/5e-database' }}
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
name: Trigger downstream
runs-on: ubuntu-20.04
needs: deploy
if: github.ref == 'refs/heads/main'
if: ${{ github.ref == 'refs/heads/main' && github.repository == '5e-bits/5e-database' }}
steps:
- name: Trigger downstream
uses: peter-evans/repository-dispatch@v1
Expand Down

0 comments on commit d82f164

Please sign in to comment.