Skip to content

Commit

Permalink
Run artifact/release jobs only on main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpar06 committed Aug 17, 2024
1 parent 53ab19a commit 1bbe739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
name: 'Create release package'
needs: [build]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/')
if: github.repository == 'nabeelio/phpvms' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/'))
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
name: 'Create Release'
needs: artifacts
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
if: github.repository == 'nabeelio/phpvms' && startsWith(github.ref, 'refs/tags/')
steps:

- name: Download artifact from build job
Expand Down

0 comments on commit 1bbe739

Please sign in to comment.