mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
Add auto-generated release notes and lncm Docker trigger (#2527)
Co-authored-by: Nazim <al-munazzim@users.noreply.github.com>
This commit is contained in:
parent
b2c1af153b
commit
313dedab2d
1 changed files with 40 additions and 0 deletions
40
.github/workflows/release.yml
vendored
40
.github/workflows/release.yml
vendored
|
|
@ -587,6 +587,21 @@ jobs:
|
|||
# Strip leading whitespace from heredoc
|
||||
sed -i 's/^ //' release-body.md
|
||||
|
||||
- name: Generate release notes
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
VERSION=${GITHUB_REF#refs/tags/}
|
||||
|
||||
# Use GitHub API to auto-generate "What's Changed" from merged PRs
|
||||
NOTES=$(gh api repos/${{ github.repository }}/releases/generate-notes \
|
||||
-f tag_name="${VERSION}" \
|
||||
--jq '.body') || true
|
||||
|
||||
if [ -n "$NOTES" ]; then
|
||||
echo "$NOTES" >> release-body.md
|
||||
fi
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
|
|
@ -595,3 +610,28 @@ jobs:
|
|||
draft: true # Draft first, review before publishing
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
trigger-docker:
|
||||
name: Trigger lncm Docker build
|
||||
needs: create-release
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ !cancelled() && needs.create-release.result == 'success' }}
|
||||
steps:
|
||||
- name: Trigger lncm/docker-specter-desktop
|
||||
env:
|
||||
AARON_TOKEN: ${{ secrets.AARON_TRIGGER }}
|
||||
run: |
|
||||
VERSION=${GITHUB_REF#refs/tags/}
|
||||
|
||||
if [ -z "$AARON_TOKEN" ]; then
|
||||
echo "AARON_TRIGGER secret not set, skipping Docker trigger"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
curl -X POST \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
-H "Authorization: token ${AARON_TOKEN}" \
|
||||
https://api.github.com/repos/lncm/docker-specter-desktop/actions/workflows/dispatch.yml/dispatches \
|
||||
-d "{\"ref\":\"master\", \"inputs\": {\"tag\": \"${VERSION}\"}}"
|
||||
|
||||
echo "Triggered lncm/docker-specter-desktop build for ${VERSION}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue