Apprise Integration

This commit is contained in:
Nikhil Badyal
2023-12-17 17:16:17 +05:30
committed by Nikhil Badyal
parent e75e591ba9
commit c25a9a4cc4
2 changed files with 46 additions and 1 deletions
+34
View File
@@ -127,6 +127,40 @@ jobs:
DOWNLOAD_GITHUB_REPOSITORY: ${{ secrets.ROOT_DOWNLOAD_GITHUB_REPOSITORY }}
MESSAGE: ${{ secrets.MESSAGE_ROOT }}
apprise-notifier:
needs: build-apk
name: Apprise Notifier
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Download Already Built APKs
uses: actions/download-artifact@main
with:
name: Built-APKs
- name: Find all built apks
id: ff
run: |
apk_list=""
for filename in $(find . -name "*-output.apk" -type f); do
apk_list="$apk_list,$filename"
done
apk_list=${apk_list:1}
echo "apks=$apk_list" >> "$GITHUB_OUTPUT"
is_present=$([ -n "${{ secrets.APPRISE_URL }}" ] && echo true || echo false );
echo "has_apprise_url=$is_present" >> $GITHUB_OUTPUT
- name: Print files
run: echo "${{ steps.ff.outputs.apks }} ${{ steps.ff.outputs.has_apprise_url }}"
- name: Upload to Telegram
uses: nikhilbadyal/ghaction-apprise@main
if: ${{ steps.ff.outputs.has_apprise_url }} == 'true'
with:
APPRISE_URL: ${{ secrets.APPRISE_URL }}
APPRISE_NOTIFICATION_BODY: ${{ secrets.APPRISE_NOTIFICATION_BODY }}
APPRISE_NOTIFICATION_TITLE: ${{ secrets.APPRISE_NOTIFICATION_TITLE }}
APPRISE_ATTACHMENTS: ${{ steps.ff.outputs.apks }}
cleanup:
name: GitHub Cleanup
+12 -1
View File
@@ -1,6 +1,6 @@
# 🤓Docker-Py-ReVanced
A little python script that will help you in building Revanced [apps](#patch-apps).
A little python script that will help you in building Revanced [apps](#patch-apps) and sharing them anywhere.
**`Note`** - If you are a root user and want magisk module (Extended). Get them [here](https://github.com/nikhilbadyal/revanced-magisk-module)
@@ -124,6 +124,9 @@ You can use any of the following methods to build.
| [TELEGRAM_API_ID](#telegram-support) | Used for telegram Authentication | None |
| [TELEGRAM_API_HASH](#telegram-support) | Used for telegram Authentication | None |
| [EXTRA_FILES](#extra-files) | Extra files apk to upload in GitHub upload. | None |
| [APPRISE_URL](#apprise) | Apprise URL . | None |
| [APPRISE_NOTIFICATION_TITLE](#apprise) | Apprise Notification Title . | None |
| [APPRISE_NOTIFICATION_BODY](#apprise) | Apprise Notification Body . | None |
`*` - Can be overridden for individual app.
### App Level Config
@@ -407,3 +410,11 @@ You can use any of the following methods to build.
once. Add it in `GitHub secrets`.<br>
17. Sample Envs<br>
<img src="https://i.imgur.com/FxOtiGs.png" width="600" style="left">
18. <a id="apprise"></a>[Apprise](https://github.com/caronc/apprise)<br>
We also have apprise support to upload built apk anywhere.To use apprise. Add belows envs in `.env` file
or in `ENVS` in `GitHub secrets` (Recommended) in the format
```ini
APPRISE_URL=tgram://bot-token/chat-id
APPRISE_NOTIFICATION_BODY=What a great Body
APPRISE_NOTIFICATION_TITLE=What a great title
```