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

chore(ci): add debug logs to verify release step #426

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
10 changes: 3 additions & 7 deletions .github/workflows/packages-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- name: Verify Release Source
id: check_release
run: |
echo "DEBUG: GITHUB_REF=${GITHUB_REF}"
echo "DEBUG: GITHUB_SHA=${GITHUB_SHA}"

# Extract the tag name
TAG_NAME=${GITHUB_REF#refs/tags/}

Expand All @@ -32,13 +35,6 @@ jobs:
exit 0
fi

# Determine the branch where the tag was created
BRANCH=$(git name-rev --name-only $GITHUB_SHA)
if [[ "$BRANCH" != "main" ]]; then
echo "skip=true" >> $GITHUB_OUTPUT
exit 1
fi

echo "skip=false" >> $GITHUB_OUTPUT
echo "Release is final and from main branch."

Expand Down
Loading