diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 0909a5e1..52808cc3 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -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 }} diff --git a/.github/workflows/manager.yml b/.github/workflows/manager.yml index 24c1e11b..45740c68 100644 --- a/.github/workflows/manager.yml +++ b/.github/workflows/manager.yml @@ -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 }}