Explorar o código

Conditionally generate badges

Nuwan Goonasekera %!s(int64=3) %!d(string=hai) anos
pai
achega
06c789b611
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .github/workflows/integration.yaml

+ 1 - 1
.github/workflows/integration.yaml

@@ -107,7 +107,7 @@ jobs:
           CB_PLACEMENT_OS: ${{ secrets.CB_PLACEMENT_OS }}
           CB_PLACEMENT_OS: ${{ secrets.CB_PLACEMENT_OS }}
 
 
       - name: Create Build Status Badge
       - name: Create Build Status Badge
-        if: ${{ always() }}
+        if: github.ref == 'refs/heads/master'
         uses: schneegans/dynamic-badges-action@v1.1.0
         uses: schneegans/dynamic-badges-action@v1.1.0
         with:
         with:
           auth: ${{ secrets.BUILD_STATUS_GIST_SECRET }}
           auth: ${{ secrets.BUILD_STATUS_GIST_SECRET }}