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

RCORE-2134 GHA release script fixes #7727

Merged
merged 1 commit into from
May 23, 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: 1 addition & 0 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
draft: false
base: ${{ github.base_ref }}
labels: no-jira-ticket
add-paths: CHANGELOG.md
commit-message: New changelog section to prepare for vNext
- name: Merge Pull Request
uses: juliangruber/merge-pull-request-action@9234b8714dda9a08f3d1df5b2a6a3abd7b695353 #! 1.3.1
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
with:
submodules: recursive
submodules: false
fetch-depth: 0 # include history and tags
- name: Change Version
run: tools/release-init.sh ${{ inputs.version }}
shell: bash
Expand All @@ -32,8 +33,6 @@ jobs:
labels: no-jira-ticket
commit-message: Prepare for release ${{ inputs.version }}
token: ${{ secrets.REALM_CI_PAT }}
delete-branch: true
base: ${{ github.ref }}
add-paths: |
dependencies.yml
Package.swift
Expand Down
3 changes: 1 addition & 2 deletions tools/release-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ sed -i.bak -e "1s/.*/$RELEASE_HEADER/" "${project_dir}/CHANGELOG.md" || exit 1
sed -i.bak -e "/.*\[#????\](https.*/d" "${project_dir}/CHANGELOG.md"
rm "${project_dir}/CHANGELOG.md.bak" || exit 1

# on CI we use a shallow clone, so we may not have the tags yet
git fetch --tags
# assumes that tags and history have been fetched
git log $(git describe --tags --abbrev=0)..HEAD --oneline --no-merges > changes-since-last-tag.txt
echo changes since last tag are
cat changes-since-last-tag.txt
Expand Down
Loading