From 8d12eeca27791deb7303cb3f215c0ef30c42fe9b Mon Sep 17 00:00:00 2001 From: tehcneko <7764726+tehcneko@users.noreply.github.com> Date: Sun, 31 Jan 2021 14:31:22 +0800 Subject: [PATCH] Fix CI (#18) * Don't post pull request builds to channel * Post master branch build only --- .github/workflows/core.yml | 1 + .github/workflows/manager.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 }}