Only run publish github action if repo owner is fabricmc (#2699)

* Only do publish if owner is fabric

Signed-off-by: liach <liach@users.noreply.github.com>

* Fix job name, closes #2698

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
This commit is contained in:
liach 2021-09-20 10:51:03 -05:00 committed by GitHub
parent 544daf01e8
commit 0f92f13aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@ name: Publish
on: [push]
concurrency: ci-${{ github.ref }}
jobs:
build:
publish:
if: ${{ github.repository_owner == 'FabricMC' }}
runs-on: ubuntu-20.04
container:
image: openjdk:17-jdk