From 770ea0fa9e09575c1e38db3ef8bfc0271d7000ce Mon Sep 17 00:00:00 2001 From: Zanna_37 <> Date: Wed, 23 Aug 2023 20:45:46 +0000 Subject: [PATCH] ci: do not run hacs-validate on pull request made from forks --- .github/workflows/hacs-validate.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hacs-validate.yml b/.github/workflows/hacs-validate.yml index 86afa5a..ce3b393 100644 --- a/.github/workflows/hacs-validate.yml +++ b/.github/workflows/hacs-validate.yml @@ -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: