Skip to content

Commit

Permalink
add scripts to comment on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Jul 26, 2024
1 parent 6e553dc commit 948a3b5
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 5 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/cake_wallet.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Build cake_wallet for android
on: [ push ]
on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
cake_wallet:
Expand Down Expand Up @@ -197,4 +199,20 @@ jobs:
rm -rf monero/contrib/depends/built/*/android_ndk
rm -rf monero/contrib/depends/sources/android-ndk-r26d-linux.zip
rm -rf wownero/contrib/depends/built/*/android_ndk
rm -rf wownero/contrib/depends/sources/android-ndk-r26d-linux.zip
rm -rf wownero/contrib/depends/sources/android-ndk-r26d-linux.zip
- name: Find Comment
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: download cake_wallet

- name: Create or update comment
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
[download cake_wallet #${{github.event.workflow_run.id}}](https://nightly.link/MrCyjaneK/monero_c/actions/runs/${{github.event.workflow_run.id}})
edit-mode: replace
24 changes: 23 additions & 1 deletion .github/workflows/compat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -465,4 +465,26 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ios ${{ matrix.coin }}
path: release/${{ matrix.coin }}
path: release/${{ matrix.coin }}
comment_pr:
name: comment on pr
runs-on: ubuntu-latest
needs: [
mingw, android, linux, sailfishos_aarch64, sailfishos_i486, darwin, macos, ios
]
steps:
- name: Find Comment
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: download libraries
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
[download libraries #${{github.event.workflow_run.id}}](https://nightly.link/MrCyjaneK/monero_c/actions/runs/${{github.event.workflow_run.id}})
edit-mode: replace
22 changes: 20 additions & 2 deletions .github/workflows/xmruw.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build xmruw
run-name: Building xmruw for supported targets
on: [push]
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
android:
strategy:
Expand Down Expand Up @@ -54,4 +56,20 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.coin }} xmruw apk
path: unnamed_monero_wallet/build/app/outputs/flutter-apk/*.apk
path: unnamed_monero_wallet/build/app/outputs/flutter-apk/*.apk
- name: Find Comment
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: download xmruw

- name: Create or update comment
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
[download xmruw #${{github.event.workflow_run.id}}](https://nightly.link/MrCyjaneK/monero_c/actions/runs/${{github.event.workflow_run.id}})
edit-mode: replace

0 comments on commit 948a3b5

Please sign in to comment.