Преглед изворни кода

ci: avoid running hassfest and hacs on forks

These often fail when they are run on another user's repo that is not
set up for HACS/HA requirements. Users creating PRs should not have to
jump through these hoops, since their submission will be via the main
repo.
Jason Rumney пре 1 месец
родитељ
комит
3aaed40965
2 измењених фајлова са 2 додато и 0 уклоњено
  1. 1 0
      .github/workflows/hacs-validate.yml
  2. 1 0
      .github/workflows/hassfest-validate.yml

+ 1 - 0
.github/workflows/hacs-validate.yml

@@ -10,6 +10,7 @@ jobs:
     permissions:
     permissions:
       contents: read
       contents: read
       pull-requests: write
       pull-requests: write
+    if: github.repository_owner == 'make-all'
 
 
     steps:
     steps:
       - uses: actions/checkout@v6
       - uses: actions/checkout@v6

+ 1 - 0
.github/workflows/hassfest-validate.yml

@@ -10,6 +10,7 @@ jobs:
     permissions:
     permissions:
       contents: read
       contents: read
       pull-requests: write
       pull-requests: write
+    if: github.repository_owner == 'make-all'
 
 
     steps:
     steps:
       - uses: actions/checkout@v6
       - uses: actions/checkout@v6