.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/webui_test.yml b/.github/workflows/webui_test.yml
index 073877c..f1e0779 100644
--- a/.github/workflows/webui_test.yml
+++ b/.github/workflows/webui_test.yml
@@ -1,6 +1,12 @@
name: WebUI Tests
on:
workflow_call:
+ inputs:
+ ref:
+ description: "The git ref to checkout"
+ required: false
+ type: string
+ default: ""
push:
branches-ignore:
- "queue-main-*"
@@ -16,6 +22,8 @@
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
+ with:
+ ref: ${{ inputs.ref }}
- name: Setup Node.js
uses: actions/setup-node@v4