Explorar o código

run codacy for labeled pull requests _and_ push events

Sebastian Stenzel %!s(int64=3) %!d(string=hai) anos
pai
achega
1c62467fd2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .github/workflows/build.yml

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

@@ -28,7 +28,7 @@ jobs:
         run: mvn -B clean install jacoco:report -Pcoverage,dependency-check
       - name: Upload code coverage report
         id: codacyCoverageReporter
-        if: "contains(github.event.pull_request.labels.*.name, 'pr:safe')"
+        if: "github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'pr:safe')"
         run: bash <(curl -Ls https://coverage.codacy.com/get.sh)
         env:
           CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}