Fix CI (#18)
* Don't post pull request builds to channel * Post master branch build only
This commit is contained in:
parent
05cafca292
commit
8d12eeca27
|
|
@ -47,6 +47,7 @@ jobs:
|
||||||
name: LSPosed-debug
|
name: LSPosed-debug
|
||||||
path: './LSPosed-debug/*'
|
path: './LSPosed-debug/*'
|
||||||
- name: Post to channel
|
- name: Post to channel
|
||||||
|
if: ${{ github.event_name != 'pull_request' && success() && github.ref == 'refs/heads/master' }}
|
||||||
env:
|
env:
|
||||||
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
|
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
|
||||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ jobs:
|
||||||
name: manager-unsigned
|
name: manager-unsigned
|
||||||
path: "app/build/outputs/apk/release/*.apk"
|
path: "app/build/outputs/apk/release/*.apk"
|
||||||
- name: Post to channel
|
- name: Post to channel
|
||||||
if: ${{ github.event_name != 'pull_request' && success() }}
|
if: ${{ github.event_name != 'pull_request' && success() && github.ref == 'refs/heads/master' }}
|
||||||
env:
|
env:
|
||||||
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
|
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
|
||||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue