Skip to content

Commit

Permalink
[update][action] Modify changelog output
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed Oct 14, 2024
1 parent cb5e75f commit f31dea1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/NEW-ISSUE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ body:
label: Version
description: What version of our software are you running? (当前您使用的版本,这对于定位问题很重要,请选择正确的版本)
options:
- 4.1.8 (Default)
- 4.2.0 (Default)
- 4.1.8
- 4.1.7
- 4.1.6
- 4.1.5
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
changelog: ${{ steps.changelog.outputs.changelog }}

permissions:
contents: read
Expand All @@ -27,7 +24,7 @@ jobs:
run: echo "version=$(git describe --tags --abbrev=1)" >> $GITHUB_OUTPUT
- name: changelog
id: changelog
run: echo "changelog=$(git log --oneline)' ${{ github.event.before }}..HEAD)" >> $GITHUB_OUTPUT
run: echo "changelog=$(git log --oneline ${{ github.event.before }}..HEAD)" >> $GITHUB_OUTPUT
# - name: 1. Import GPG key
# id: import_gpg
# uses: crazy-max/ghaction-import-gpg@v4
Expand Down Expand Up @@ -72,7 +69,7 @@ jobs:
body: |
# Addax ${{ steps.version.outputs.version }} has released! 🎉
## Changes
${{ steps.changelog.outputs.body }}
${{ steps.changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}

Expand Down

0 comments on commit f31dea1

Please sign in to comment.