.github/workflows: thread formatted HEAD commit to test sub-actions
Thread the commit SHA from the formatting job to the test jobs in GitHub workflows.
This ensures that when auto-formatting runs in the queue-main and queue-dev workflows,
tests run against the newly formatted code rather than the original code.
Co-Authored-By: sketch <hello@sketch.dev>
diff --git a/.github/workflows/queue-dev.yml b/.github/workflows/queue-dev.yml
index a9a1b54..2b8a141 100644
--- a/.github/workflows/queue-dev.yml
+++ b/.github/workflows/queue-dev.yml
@@ -24,11 +24,15 @@
needs: [formatting]
uses: ./.github/workflows/go_test.yml
permissions: read-all
+ with:
+ ref: ${{ needs.formatting.outputs.commit_sha }}
ui-test:
needs: [formatting]
uses: ./.github/workflows/webui_test.yml
permissions: read-all
+ with:
+ ref: ${{ needs.formatting.outputs.commit_sha }}
push-to-main:
runs-on: ubuntu-latest