show more commit messages in discord message
This commit is contained in:
parent
ed19aac553
commit
8ca1c3be1f
1 changed files with 10 additions and 2 deletions
12
.github/workflows/beta.yml
vendored
12
.github/workflows/beta.yml
vendored
|
@ -17,6 +17,13 @@ jobs:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Get Last 10 Commits
|
||||||
|
id: get_commits
|
||||||
|
run: |
|
||||||
|
echo 'COMMIT_LOG<<EOF' >> $GITHUB_ENV
|
||||||
|
git log ${{ github.event.before }}..${{ github.sha }} --pretty=format:"%s" -10 >> $GITHUB_ENV
|
||||||
|
echo 'EOF' >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set variables
|
- name: Set variables
|
||||||
run: |
|
run: |
|
||||||
VER=$(grep -E -o "versionName \".*\"" app/build.gradle | sed -e 's/versionName //g' | tr -d '"')
|
VER=$(grep -E -o "versionName \".*\"" app/build.gradle | sed -e 's/versionName //g' | tr -d '"')
|
||||||
|
@ -53,8 +60,9 @@ jobs:
|
||||||
- name: Upload APK to Discord
|
- name: Upload APK to Discord
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
contentbody=$( jq -Rsa . <<< "${{ github.event.head_commit.message }}" )
|
commit_messages=$(echo "$COMMIT_LOG")
|
||||||
curl -F "payload_json={\"content\":\" Alpha-Build: <@659107544597266465> **${{ env.VERSION }}**\n\n${contentbody:1:-1}\"}" -F "dantotsu_debug=@app/build/outputs/apk/alpha/app-alpha.apk" ${{ secrets.DISCORD_WEBHOOK }}
|
contentbody=$( jq -Rsa . <<< "Alpha-Build: <@659107544597266465> **${{ env.VERSION }}**\n\n$commit_messages" )
|
||||||
|
curl -F "payload_json={\"content\":${contentbody}}" -F "dantotsu_debug=@app/build/outputs/apk/alpha/app-alpha.apk" ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
|
||||||
- name: Delete Old Pre-Releases
|
- name: Delete Old Pre-Releases
|
||||||
id: delete-pre-releases
|
id: delete-pre-releases
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue