Skip to content

Commit f062006

Browse files
committed
fstests.yml: use unique ref
Use the ref for the kdevops commit as the KDEVOPS_HOSTS_PREFIX. If you are using kdevops to test kernel trees you can use the same trick as a prefix for your guests with KDEVOPS_HOSTS_PREFIX. This will ensure your self-hosted runner can run more than one guest at a time. Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 5cc1a5c commit f062006

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/fstests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
2727
- name: Run kdevops make defconfig-repo
2828
run: |
29-
make KDEVOPS_HOSTS_PREFIX="gh" defconfig-xfs_reflink_4k
29+
KDEVOPS_TREE_REF="${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}"
30+
SHORT_PREFIX="$(echo ${KDEVOPS_TREE_REF:0:4})"
31+
make KDEVOPS_HOSTS_PREFIX="$KDEVOPS_TREE_REF" defconfig-xfs_reflink_4k
3032
3133
- name: Run kdevops make
3234
run: |

0 commit comments

Comments
 (0)