From f5acfffb436c1bcd56f66fb85f69709536c5f3d7 Mon Sep 17 00:00:00 2001 From: Karl Rister Date: Wed, 9 Oct 2024 16:08:35 -0500 Subject: [PATCH] update the crucible-release workflow to document the object names of the referenced commits --- .github/workflows/crucible-release.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/crucible-release.yaml b/.github/workflows/crucible-release.yaml index 7dad61d..21622cc 100644 --- a/.github/workflows/crucible-release.yaml +++ b/.github/workflows/crucible-release.yaml @@ -128,6 +128,12 @@ jobs: git ls-remote --heads origin echo "Local Branches:" git branch + echo "Current commit's object name:" + git rev-parse --verify HEAD + echo "Current object name for tag $TAG (if it exists):" + git rev-parse --verify tags/$TAG || true + echo "Current object name for branch $TAG (if it exists):" + git rev-parse --verify remotes/origin/$TAG || true if [ "${{ inputs.action }}" == "push" ]; then ARGS="" if [ "${{ inputs.force_push }}" == "true" ]; then @@ -148,6 +154,10 @@ jobs: fi echo "Tags:" git ls-remote --tags origin + echo "Current object name for tag $TAG (if it exists):" + git rev-parse --verify tags/$TAG || true + echo "Current object name for branch $TAG (if it exists):" + git rev-parse --verify remotes/origin/$TAG || true - name: Get the list of sub-projects id: get-repos run: | @@ -211,6 +221,12 @@ jobs: git ls-remote --heads origin echo "Local Branches:" git branch + echo "Current commit's object name:" + git rev-parse --verify HEAD + echo "Current object name for tag $TAG (if it exists):" + git rev-parse --verify tags/$TAG || true + echo "Current object name for branch $TAG (if it exists):" + git rev-parse --verify remotes/origin/$TAG || true if [ "${{ inputs.action }}" == "push" ]; then ARGS="" if [ "${{ inputs.force_push }}" == "true" ]; then @@ -231,6 +247,10 @@ jobs: fi echo "Tags:" git ls-remote --tags origin + echo "Current object name for tag $TAG (if it exists):" + git rev-parse --verify tags/$TAG || true + echo "Current object name for branch $TAG (if it exists):" + git rev-parse --verify remotes/origin/$TAG || true crucible-release-verification: if: ${{ inputs.action == 'push' }}