Skip to content

Commit

Permalink
test release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
neCo2 committed May 22, 2024
1 parent 8b25c72 commit 7ad4a51
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/compile_mikupad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ jobs:

- name: Get Last Release Tag
id: last_release
run: echo "tag=$(git describe --tags --abbrev=0 HEAD^)" >> $GITHUB_OUTPUT
run: echo "tag=$(git describe --tags --abbrev=0 HEAD^ git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "none")" >> $GITHUB_OUTPUT

- name: Generate Changelog
id: changelog
run: |
LAST_TAG=$(git describe --tags --abbrev=0 HEAD^)
echo "Generating changelog from $LAST_TAG"
echo "$(git log $LAST_TAG..HEAD --oneline)" > CHANGELOG.txt
if [ "${{ steps.last_release.outputs.tag }}" = "none" ]; then
echo "mikudayo~" > CHANGELOG.txt
else
LAST_TAG=$(git describe --tags --abbrev=0 HEAD^)
echo "Generating changelog from $LAST_TAG"
echo "$(git log $LAST_TAG..HEAD --oneline)" > CHANGELOG.txt
fi
echo "body=$(cat CHANGELOG.txt)" >> $GITHUB_OUTPUT
- name: Release
Expand Down

0 comments on commit 7ad4a51

Please sign in to comment.