Skip to content

Commit

Permalink
rename apk to version name
Browse files Browse the repository at this point in the history
  • Loading branch information
brahmkshatriya committed Feb 23, 2024
1 parent 0d31cab commit 38ddf81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ jobs:
ROLE: ${{ secrets.DISCORD_PING_ROLE_ID }}
WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
run: |
contentbody=$( jq -Rsa . <<< "${{ env.CONTENT }}" )
curl -F "payload_json={\"content\":\"<@&${{ env.ROLE }}> **${{ env.VERSION }}**\n\n${contentbody:1:-1}\"}" -F "echo_beta=@app/build/outputs/apk/debug/app-debug.apk" ${{ env.WEBHOOK }}
content=$( jq -Rsa . <<< "${{ env.CONTENT }}" )
version=$( echo ${{ env.VERSION }} | cut -c1-7 )
mv app/build/outputs/apk/debug/app-debug.apk app/build/outputs/apk/debug/${version}.apk
curl -F "payload_json={\"content\":\"<@&${{ env.ROLE }}> **${version}**\n${content:1:-1}\"}" -F "echo_beta=@app/build/outputs/apk/debug/${version}.apk" ${{ env.WEBHOOK }}

0 comments on commit 38ddf81

Please sign in to comment.