Skip to content

Commit 32abc34

Browse files
committed
fix(github): Use build git rev for testing
While the actions are working as expected in main branch I noticed that for other branches: In test workflow the checkout action is not using the same rev as in the build workflow. IHMO this is an odd default beaviour... Origin: SiliconLabsSoftware#91 Relate-to: https://github.com/orgs/community/discussions/157893 Relate-to: SiliconLabsSoftware/z-wave-engine-application-layer#22 Signed-off-by: Philippe Coval <[email protected]>
1 parent 2ee150e commit 32abc34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
---
55

66
name: test
7+
run-name: "test: ${{ github.event.workflow_run.head_branch }}#${{ github.event.workflow_run.head_commit.id }}"
78

89
on: # yamllint disable-line rule:truthy
910
workflow_run:
@@ -28,6 +29,7 @@ jobs:
2829
- uses: actions/[email protected]
2930
with:
3031
fetch-depth: 0
32+
ref: ${{ github.event.workflow_run.head_commit.id }}
3133

3234
- name: Download embedded applications package
3335
uses: robinraju/[email protected]

0 commit comments

Comments
 (0)