Răsfoiți Sursa

Adjust GitHub Actions condition for manual pipeline execution

Frédéric Guillot 2 ani în urmă
părinte
comite
8602089a1e

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

@@ -30,7 +30,7 @@ jobs:
     - name: List generated files
       run: ls -l *.deb
   build-packages-manually:
-    if: github.event.workflow_dispatch
+    if: github.event_name != 'pull_request' && github.event_name != 'push'
     name: Build Packages Manually
     runs-on: ubuntu-latest
     steps:

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

@@ -21,7 +21,7 @@ jobs:
     - name: List generated files
       run: ls -l *.rpm
   build-package-manually:
-    if: github.event.workflow_dispatch
+    if: github.event_name != 'pull_request' && github.event_name != 'push'
     name: Build Packages Manually
     runs-on: ubuntu-latest
     steps: