]> sigrok.org Git - sigrok-build.git/commitdiff
build.yml: Another attempt at selectively running workflows
authorSoeren Apel <redacted>
Tue, 13 Aug 2024 19:05:58 +0000 (21:05 +0200)
committerSoeren Apel <redacted>
Tue, 13 Aug 2024 19:05:58 +0000 (21:05 +0200)
.github/workflows/build.yml

index 606befdd3703ac1f85bb345f8fbb0a7a72bc511c..79150f719c66e4bcbb5f8d534a022e3631f8be7a 100644 (file)
@@ -513,7 +513,7 @@ jobs:
     runs-on: ubuntu-latest
 
     if: |
-      (endsWith(${{ github.repository }}, 'pulseview') &&
+      (endsWith(github.repository, 'pulseview') &&
       ((github.event_name == 'push' && github.ref == 'refs/heads/master') ||
       (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master'))
     needs:
@@ -522,6 +522,12 @@ jobs:
       - build_pulseview_macos
 
     steps:
+      - name: Debug output
+        env:
+          GH_REPO: ${{ github.repository }}
+          GH_EVENT_NAME: ${{ github.event_name }}
+          GH_REF: ${{ github.ref }}
+        run: echo "$GH_REPO / $GH_EVENT_NAME / $GH_REF"
       - name: Download AppImage artifacts
         uses: actions/download-artifact@v3
       - name: Download all other artifacts
@@ -550,7 +556,7 @@ jobs:
     runs-on: ubuntu-latest
 
     if: |
-      (endsWith(${{ github.repository }}, 'sigrok-cli') &&
+      (endsWith(github.repository, 'sigrok-cli') &&
       ((github.event_name == 'push' && github.ref == 'refs/heads/master') ||
       (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master'))
     needs:
@@ -559,6 +565,12 @@ jobs:
       - build_sigrok-cli_macos
 
     steps:
+      - name: Debug output
+        env:
+          GH_REPO: ${{ github.repository }}
+          GH_EVENT_NAME: ${{ github.event_name }}
+          GH_REF: ${{ github.ref }}
+        run: echo "$GH_REPO / $GH_EVENT_NAME / $GH_REF"
       - name: Download AppImage artifacts
         uses: actions/download-artifact@v3
       - name: Download all other artifacts
@@ -585,7 +597,7 @@ jobs:
     runs-on: ubuntu-latest
 
     if: |
-      (endsWith(${{ github.repository }}, 'sigrok-build') &&
+      (endsWith(github.repository, 'sigrok-build') &&
       (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
       (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master')
     needs:
@@ -593,5 +605,9 @@ jobs:
       - continuous_release_sigrok-cli
 
     steps:
-      - name: Dummy
-        run: echo
+      - name: Debug output
+        env:
+          GH_REPO: ${{ github.repository }}
+          GH_EVENT_NAME: ${{ github.event_name }}
+          GH_REF: ${{ github.ref }}
+        run: echo "$GH_REPO / $GH_EVENT_NAME / $GH_REF"