Commit 37a7bde
authored
fix(actions): Ensure build workflow checkouts correct commit SHA (#21631)
When triggered by a workflow_run event, the build workflow was using the default checkout behavior
which grabs `github.ref` (whatever is latest for the current workflow) rather than the commit that
triggered the original workflow. This fixes the issue by explicitly
checking out the commit ID from the original workflow run.
This ensures the code being built matches the exact commit that was tested in the previous workflow.1 parent 7daa3d6 commit 37a7bde
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments