Skip to content

Commit e8415aa

Browse files
committed
add link to changes
1 parent 137b5e3 commit e8415aa

File tree

2 files changed

+8
-54
lines changed

2 files changed

+8
-54
lines changed

.github/workflows/bitbucket.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,15 @@ jobs:
5353
env:
5454
GH_TOKEN: ${{ github.token }}
5555
run: |
56+
notes="This release includes an XPI file that is automatically generated after each push to the main branch."
5657
if ! gh release view dev-build > /dev/null 2>&1; then
57-
gh release create dev-build --title "Development Build" --notes "This release includes an XPI file that is automatically generated after each push to the main branch." --draft --prerelease
58+
gh release create dev-build --title "Development Build" --notes "$notes" --draft --prerelease
59+
fi
60+
version_tag=$(git tag --sort=-creatordate | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+' | head -n 1)
61+
if [ $(git rev-parse $version_tag) != $(git rev-parse HEAD) ]; then
62+
changes_url="https://github.com/onemen/TabMixPlus/compare/$version_tag...dev_build"
63+
notes="$notes\\n\\nChanges since [$version_tag]($changes_url)"
64+
gh release edit dev-build --notes="$notes"
5865
fi
5966
gh release edit dev-build --draft=false
6067
gh release upload dev-build /tmp/${{ env.XPI_NAME }}.xpi --clobber

0 commit comments

Comments
 (0)