Commit 090bc56
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
0 commit comments