From 802ef931c1b305e34ef9bc76e2ff99293b7da96a Mon Sep 17 00:00:00 2001 From: HalfLife <6436073+o0HalfLife0o@users.noreply.github.com> Date: Thu, 30 Jun 2022 09:56:29 +0800 Subject: [PATCH] only test build on pull request --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9d464c35e..88ca21f9e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -97,7 +97,7 @@ jobs: lanzou: needs: [ prepare, build ] - if: ${{ needs.prepare.outputs.lanzou }} + if: ${{ github.event_name != 'pull_request' && needs.prepare.outputs.lanzou == 'yes' }} runs-on: ubuntu-latest env: # 登录蓝奏云后在控制台运行document.cookie @@ -122,7 +122,7 @@ jobs: test_Branch: needs: [ prepare, build ] runs-on: ubuntu-latest - if: ${{ github.actor == 'gedoor' }} + if: ${{ github.event_name != 'pull_request' && github.actor == 'gedoor' }} steps: - uses: actions/checkout@v2 - uses: actions/download-artifact@v2 @@ -144,7 +144,7 @@ jobs: telegram: needs: [ prepare, build ] - if: ${{ needs.prepare.outputs.telegram }} + if: ${{ github.event_name != 'pull_request' && needs.prepare.outputs.telegram == 'yes' }} runs-on: ubuntu-latest env: CHANNEL_ID: ${{ secrets.CHANNEL_ID }}