Skip to content

Commit

Permalink
Update github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kendryte747 committed Nov 28, 2024
1 parent 3404ce4 commit 64f1046
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/tag_subproject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ echo "Applying tag: $TAG_NAME to all subprojects..."
else
echo "Last tag found: $LAST_TAG"
# Generate the compare URL between the last tag and the new tag
REPO_URL=$(git remote get-url "$REMOTE_NAME" | sed 's/\.git$//') # Remove .git suffix if present
COMPARE_URL="$REPO_URL/compare/$LAST_TAG...'"$TAG_NAME"'"
# Collect commits between the last tag and the current HEAD
COMMIT_LOG=$(git log "$LAST_TAG..HEAD" --oneline --pretty=format:"* %h %s")
if [ -z "$COMMIT_LOG" ]; then
TAG_MESSAGE="Release: '"$TAG_NAME"'\n\nNo new commits since the previous tag: $LAST_TAG."
else
TAG_MESSAGE="Release: '"$TAG_NAME"'\n\n**Changes since $LAST_TAG:**\n\n$COMMIT_LOG"
TAG_MESSAGE="Release: '"$TAG_NAME"'\n\n**Changes since $LAST_TAG:**\n\nFullChanelog: $COMPARE_URL\n\n$COMMIT_LOG"
fi
fi
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,16 @@ jobs:
echo "-------------------"
done
- name: Generate release.xml
run: |
repo manifest -r -o release_${{ github.ref_name }}.xml
- name: Upload images to Release Asset
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
files: |
output/**/*.img.gz
output/**/*.img.md5
release_${{ github.ref_name }}.xml
generate_release_notes: true

0 comments on commit 64f1046

Please sign in to comment.