* Don't post pull request builds to channel

* Post master branch build only
This commit is contained in:
tehcneko 2021-01-31 14:31:22 +08:00 committed by GitHub
parent 05cafca292
commit 8d12eeca27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ jobs:
name: LSPosed-debug
path: './LSPosed-debug/*'
- name: Post to channel
if: ${{ github.event_name != 'pull_request' && success() && github.ref == 'refs/heads/master' }}
env:
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}

View File

@ -49,7 +49,7 @@ jobs:
name: manager-unsigned
path: "app/build/outputs/apk/release/*.apk"
- name: Post to channel
if: ${{ github.event_name != 'pull_request' && success() }}
if: ${{ github.event_name != 'pull_request' && success() && github.ref == 'refs/heads/master' }}
env:
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}