Skip to content

Commit

Permalink
GHA release script fixes (#7727)
Browse files Browse the repository at this point in the history
  • Loading branch information
ironage authored May 23, 2024
1 parent e3d053b commit 4cfdcd6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
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

0 comments on commit 4cfdcd6

Please sign in to comment.