Skip to content

Commit

Permalink
chore: run deploy only for pull request created from the repo not forks
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Jul 17, 2024
1 parent 021f038 commit 23fddea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ jobs:

deploy:
if: >
(github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.event.pull_request.base.ref == 'develop') &&
github.event.pull_request.user.login == 'valerymelou'
(github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || (github.event.pull_request.base.ref == 'develop' && github.event.pull_request.head.repo.full_name == github.repository))
needs: test
uses: ./.github/workflows/cd.yml
secrets: inherit

0 comments on commit 23fddea

Please sign in to comment.