Pārlūkot izejas kodu

Use owner instead of name in check.

name was not the full name as suggested in some web pages, but owner is the
differentiating factor anyway.
Jason Rumney 4 gadi atpakaļ
vecāks
revīzija
32f8854107
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      .github/workflows/tests.yml

+ 2 - 2
.github/workflows/tests.yml

@@ -29,11 +29,11 @@ jobs:
       - name: SonarCloud Debug
         env:
           GH_EVENT: ${{ github.event_name }}
-          GH_REPO: ${{ github.event.repository.name }}
+          GH_REPO: ${{ github.event.repository.owner }}
         run: echo "event $GH_EVENT repo $GH_REPO"
       - name: SonarCloud scan
         uses: sonarsource/sonarcloud-github-action@master
-        if: github.event_name == 'push' && github.event.repository.name == 'make-all/tuya-local'
+        if: github.event_name == 'push' && github.event.repository.owner == 'make-all'
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}