Skip to content

Commit 7e7ccb5

Browse files
authored
Honor source-repo-ref when checking out for release dispatch (DataDog#23836)
The release-trigger workflow accepts a source-repo-ref input, but the reusable release-dispatch workflow's actions/checkout step did not pass a ref, so it always checked out github.sha (the workflow's commit). As a result, ddev release tag and the validation steps ran against the wrong commit when a manual release was dispatched against a non-HEAD ref. Pass inputs.source-repo-ref (with github.sha as the fallback) to actions/checkout so the working tree matches the requested ref.
1 parent 29823eb commit 7e7ccb5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/release-dispatch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
steps:
5959
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6060
with:
61+
ref: ${{ inputs.source-repo-ref || github.sha }}
6162
fetch-depth: 0 # ddev needs full tag history
6263

6364
- name: Checkout integrations-core actions

0 commit comments

Comments
 (0)