Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the crucible-release workflow to document the object names of … #413

Merged
merged 2 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/crucible-release-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- .github/workflows/faux-crucible-release-ci.yaml
- .github/workflows/faux-crucible-ci.yaml
- .github/workflows/faux-ci.yaml
- .github/workflows/crucible-release.yaml
- 'docs/**'
- 'spec/**'
workflow_dispatch:
Expand Down
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
1 change: 0 additions & 1 deletion .github/workflows/faux-crucible-release-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- .github/workflows/faux-crucible-release-ci.yaml
- .github/workflows/faux-crucible-ci.yaml
- .github/workflows/faux-ci.yaml
- .github/workflows/crucible-release.yaml
- 'docs/**'
- 'spec/**'

Expand Down