templates/.github
Marty Oehme ccdecda26c
Ensure we check out current commit
Before we were checking out the 'github.ref', which described the
"fully-formed ref of the branch or tag that triggered the workflow"
instead of the actual commit we want.[1] If there are commits above the
commit that triggered the current run (e.g. we pushed multiple to main
or similar), we would compare the wrong (head) commit.

Removing the 'ref:' option should check out the correct SHA instead.[2]
If it turns out it does not, we could still manually supply
'${{ github.sha }}'.

[1]: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#github-context
[2]: https://github.com/actions/checkout
2025-03-08 17:44:05 +01:00
..
workflows Ensure we check out current commit 2025-03-08 17:44:05 +01:00
changed_templates.sh Check diff to parent commit for non-merge commits 2025-03-06 08:27:42 +01:00