only run if in an inventree org repo

This commit is contained in:
Matthias Mair 2024-02-27 18:31:28 +01:00
parent bbace2b1c9
commit bd942a689f
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -178,7 +178,7 @@ jobs:
name: Push new schema
runs-on: ubuntu-20.04
needs: [paths-filter, schema]
if: needs.schema.result == 'success' && github.ref == 'refs/heads/master' && needs.paths-filter.outputs.api == 'true'
if: needs.schema.result == 'success' && github.ref == 'refs/heads/master' && needs.paths-filter.outputs.api == 'true' && github.repository_owner == 'inventree'
env:
version: ${{ needs.schema.outputs.version }}