Просмотр исходного кода

Workflow: Use single quotes for literal strings.

As documented at https://docs.github.com/en/actions/learn-github-actions/expressions
Jason Rumney 2 лет назад
Родитель
Сommit
d474017377
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .github/workflows/tests.yml

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

@@ -25,7 +25,7 @@ jobs:
         run: pytest --cov=. --cov-config=.coveragerc --cov-report xml:coverage.xml
       - name: SonarCloud scan
         uses: sonarsource/sonarcloud-github-action@master
-        if: (github.event.sender.login == github.event.repository.owner.login) && (github.repository == make-all/tuya-local) && (github.ref == main)
+        if: (github.event.sender.login == github.event.repository.owner.login) && (github.repository == 'make-all/tuya-local') && (github.ref == 'main')
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}