Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,17 @@ jobs:
name: debug-apk
path: app/build/outputs/apk/debug/app-debug.apk
retention-days: 7

- name: Comment PR with artifact link
if: success()
uses: actions/github-script@v7
with:
script: |
const runUrl = `https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}`;
const comment = `Debug APK built successfully!\n\nDownload artifact: [debug-apk](${runUrl})\n\n_Artifact will be available for 7 days_`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: comment
});
6 changes: 5 additions & 1 deletion .github/workflows/discord_notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ jobs:
echo "TAG=$TAG" >> $GITHUB_OUTPUT
echo "NAME=$NAME" >> $GITHUB_OUTPUT
echo "URL=$URL" >> $GITHUB_OUTPUT
echo "BODY=$BODY" >> $GITHUB_OUTPUT
{
echo "BODY<<EOF"
echo "$BODY"
echo "EOF"
} >> $GITHUB_OUTPUT
- name: Send to Discord (releases)
env:
WEBHOOK_RELEASES: ${{ secrets.DISCORD_WEBHOOK_RELEASES }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
run: |
if [ -z "$WEBHOOK" ]; then exit 0; fi
payload=$(jq -n --arg content "Build started for ${{ github.ref_name }}")
payload=$(jq -n --arg content "Build started for ${{ github.ref_name }}" '{content: $content}')
curl -s -H "Content-Type: application/json" -d "$payload" "$WEBHOOK" || true

- name: Checkout code
Expand All @@ -38,7 +38,7 @@ jobs:
WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
run: |
if [ -z "$WEBHOOK" ]; then exit 0; fi
payload=$(jq -n --arg content "Environment setup complete (Java 17, Android SDK)")
payload=$(jq -n --arg content "Environment setup complete (Java 17, Android SDK)" '{content: $content}')
curl -s -H "Content-Type: application/json" -d "$payload" "$WEBHOOK" || true

- name: Get version from tag
Expand All @@ -62,7 +62,7 @@ jobs:
WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
run: |
if [ -z "$WEBHOOK" ]; then exit 0; fi
payload=$(jq -n --arg content "Keystore decoded")
payload=$(jq -n --arg content "Keystore decoded" '{content: $content}')
curl -s -H "Content-Type: application/json" -d "$payload" "$WEBHOOK" || true

- name: Build release APK
Expand All @@ -81,7 +81,7 @@ jobs:
WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
run: |
if [ -z "$WEBHOOK" ]; then exit 0; fi
payload=$(jq -n --arg content "Release APK build complete")
payload=$(jq -n --arg content "Release APK build complete" '{content: $content}')
curl -s -H "Content-Type: application/json" -d "$payload" "$WEBHOOK" || true

- name: Create Release
Expand All @@ -102,7 +102,7 @@ jobs:
RELEASE_URL: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}
run: |
if [ -z "$WEBHOOK" ]; then exit 0; fi
payload=$(jq -n --arg content "Release published: ${{ github.ref_name }}\n$RELEASE_URL")
payload=$(jq -n --arg content "Release published: ${{ github.ref_name }}\n$RELEASE_URL" '{content: $content}')
curl -s -H "Content-Type: application/json" -d "$payload" "$WEBHOOK" || true

- name: Clean up keystore
Expand All @@ -115,5 +115,5 @@ jobs:
WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
run: |
if [ -z "$WEBHOOK" ]; then exit 0; fi
payload=$(jq -n --arg content "Build failed for ${{ github.ref_name }}\nhttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}")
payload=$(jq -n --arg content "Build failed for ${{ github.ref_name }}\nhttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" '{content: $content}')
curl -s -H "Content-Type: application/json" -d "$payload" "$WEBHOOK" || true
Loading