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

trying to get version number #1982

Merged
merged 1 commit into from
Jan 29, 2025
Merged
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
8 changes: 6 additions & 2 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
echo "Source branch was 'release/*'"
fi

VERSION_NUMBER=${SOURCE_BRANCH#release/}
echo "VERSION_NUMBER=$VERSION_NUMBER" >> $GITHUB_ENV

MERGE_COMMIT_SHA=$(jq --raw-output .pull_request.merge_commit_sha "$GITHUB_EVENT_PATH")
echo "MERGE_COMMIT_SHA=$MERGE_COMMIT_SHA" >> $GITHUB_ENV

Expand All @@ -42,8 +45,9 @@ jobs:

- name: Create Release
run: |
echo "Creating Release for Version: ???"
echo "Description: ${{ env.PR_DESCRIPTION }}"
echo "Creating Release for Version: ${{ env.VERSION_NUMBER }}"
echo "Description:"
cat "${{ github.workspace }}/release_notes.md"
echo "The merge commit is: ${{ env.MERGE_COMMIT_SHA }}"

# - name: Draft Release
Expand Down
Loading