Przeglądaj źródła

github.event.repository.owner is an object

Need the login member for a string
Jason Rumney 3 lat temu
rodzic
commit
3d7d011a05
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      .github/workflows/tests.yml

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

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