Skip to content

Commit 12dbafd

Browse files
committed
[maestro] Restore latest run dispatch confirmation
1 parent 005a200 commit 12dbafd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/tag-release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ jobs:
187187
}
188188
189189
# shellcheck disable=SC2317 # Invoked indirectly through retry.
190-
dispatched_release_run_count() {
190+
latest_dispatched_release_run_id() {
191191
gh run list \
192192
--repo "${GITHUB_REPOSITORY}" \
193193
--workflow release \
@@ -218,11 +218,11 @@ jobs:
218218
echo "Found ${active_count} active release workflow run(s) for ${RELEASE_TAG}; not dispatching another."
219219
exit 0
220220
fi
221-
existing_run_id="$(retry "List dispatched release workflows" dispatched_release_run_count)"
221+
existing_run_id="$(retry "List dispatched release workflows" latest_dispatched_release_run_id)"
222222
retry "Dispatch release workflow" gh workflow run release --repo "${GITHUB_REPOSITORY}" --ref "${RELEASE_TAG}" --field "version=${RELEASE_VERSION}"
223223
224224
for attempt in 1 2 3 4 5 6; do
225-
release_run_id="$(retry "Confirm dispatched release workflow" dispatched_release_run_count)"
225+
release_run_id="$(retry "Confirm dispatched release workflow" latest_dispatched_release_run_id)"
226226
if [[ -n "${release_run_id}" && "${release_run_id}" != "${existing_run_id}" ]]; then
227227
echo "Confirmed release workflow dispatch for ${RELEASE_TAG}; run ${release_run_id} is queued."
228228
exit 0

0 commit comments

Comments
 (0)