Skip to content

Commit 090bc56

Browse files
committed
data-sync-maintainers: checkout the dispatched ref, not hardcoded main
The checkout step pinned `ref: main`, so a manual workflow_dispatch from a branch still ran main's files (generate_CODEOWNERS.sh, board configs) — making it impossible to test a change to those from a branch: the inactive maintainers got flagged (that logic is in the workflow yaml, which DOES come from the branch) but CODEOWNERS was regenerated by main's unfiltered script, so the auto-PR showed no change. Use `ref: ${{ github.ref_name }}`: the scheduled run (on main) is unchanged, while a manual run from a branch checks out that branch and exercises its code. Signed-off-by: Igor Pecovnik <igor@armbian.com>
1 parent ae29bc7 commit 090bc56

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/data-sync-maintainers.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ jobs:
2525
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2626
with:
2727
repository: armbian/build
28-
ref: main
28+
# Follow the dispatched ref: the scheduled run is on main (so this is
29+
# 'main' there), but a manual workflow_dispatch from a branch checks out
30+
# THAT branch — so changes to generate_CODEOWNERS.sh / configs can be
31+
# tested end-to-end before merge (was hardcoded 'main', which always ran
32+
# main's files regardless of where you dispatched from).
33+
ref: ${{ github.ref_name }}
2934
fetch-depth: 0
3035
clean: false
3136

0 commit comments

Comments
 (0)