Skip to content

Commit

Permalink
ci: do not run hacs-validate on pull request made from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanna_37 committed Aug 23, 2023
1 parent 0655b3b commit 770ea0f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/hacs-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ jobs:

hacs:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true' && github.repository == 'zanna-37/hass-swipe-navigation'
if: >
needs.pre_job.outputs.should_skip != 'true'
&& github.repository == 'zanna-37/hass-swipe-navigation'
&& (
github.event_name != 'pull_request'
|| github.event.pull_request.head.repo.full_name == 'zanna-37/hass-swipe-navigation'
)
name: HACS Validation
runs-on: "ubuntu-latest"
steps:
Expand Down

0 comments on commit 770ea0f

Please sign in to comment.