Skip to content

Commit

Permalink
ci: do not release from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Jun 7, 2022
1 parent aadba54 commit 3bb0fb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
needs:
- build
runs-on: ubuntu-latest
if: github.event_name == 'push'
if: >- # Do not try to release on PRs or from forks
contains('push workflow_dispatch', github.event_name)
&& startsWith(github.repository, 'DanySK/')
steps:
- name: Checkout
uses: actions/checkout@v3.0.2
Expand Down

0 comments on commit 3bb0fb8

Please sign in to comment.