Revert "Fix: Checked out code should be present in tox verify"
[com/pylog.git] / .github / workflows / gerrit-novote-merge.yaml
index 474c8c6..13697bb 100644 (file)
@@ -52,7 +52,7 @@ concurrency:
   cancel-in-progress: true
 
 jobs:
-  call-gerrit-tox-and-sonarcloud:
+  notify:
     runs-on: ubuntu-latest
     steps:
       - name: Notify job start
@@ -69,6 +69,15 @@ jobs:
           comment-only: true
       - name: Allow replication
         run: sleep 10s
+
+  call-gerrit-tox-and-sonarcloud:
+    runs-on: ubuntu-latest
+    needs: notify
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          ref: ${{ inputs.GERRIT_BRANCH }}
+          submodules: "true"
       - name: Run Tox verify
         # yamllint disable-line rule:line-length
         uses: lfit/releng-reusable-workflows/.github/actions/tox-run-action@main
@@ -92,7 +101,7 @@ jobs:
 
   report-status:
     if: ${{ always() }}
-    needs: [call-gerrit-tox-and-sonarcloud]
+    needs: [notify, call-gerrit-tox-and-sonarcloud]
     runs-on: ubuntu-latest
     steps:
       - name: Get workflow conclusion