.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-main.yml b/.github/workflows/queue-main.yml
index e66f15f..03410b0 100644
--- a/.github/workflows/queue-main.yml
+++ b/.github/workflows/queue-main.yml
@@ -29,11 +29,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