Skip to content

Commit

Permalink
update the crucible-release workflow to document the object names of …
Browse files Browse the repository at this point in the history
…the referenced commits
  • Loading branch information
k-rister committed Oct 9, 2024
1 parent 0e80920 commit f5acfff
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/crucible-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down Expand Up @@ -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
Expand All @@ -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' }}
Expand Down

0 comments on commit f5acfff

Please sign in to comment.