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 06e6e20 commit 5e12ec7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/compile_mikupad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,16 @@ jobs:
if [ "${{ steps.last_release.outputs.tag }}" = "none" ]; then
echo "mikudayo~" > CHANGELOG.txt
else
NEW_COMMIT="${{ steps.last_release.outputs.tag }}"
OLD_COMMIT="${{ steps.last_release.outputs.tag }}"
NUM_COMMITS="${{ steps.build_ids.outputs.number }}"
N_COMMITS="$(($NUM_COMMITS - $NEW_COMMIT))"
echo "Generating changelog with $NUM_COMMITS commits to reach $NEW_COMMIT"
NEW_COMMITS="$(($NUM_COMMITS - $OLD_COMMIT))"
echo "Generating changelog with $NEW_COMMITS commits starting from $OLD_COMMIT"
# echo changelog
echo "Generated $(date +'%Y-%m-%d %T')" >> CHANGELOG.txt
echo "\`\`\`" >> CHANGELOG.txt
echo "$(git log --graph -n $N_COMMITS --oneline)" >> CHANGELOG.txt
echo "$(git log --graph -n $NEW_COMMITS --oneline)" >> CHANGELOG.txt
echo "\`\`\`" >> CHANGELOG.txt
echo "$(git log --graph -n $N_COMMITS --oneline)"
fi
- name: Release
Expand Down

0 comments on commit 5e12ec7

Please sign in to comment.