only test build on pull request

pull/2010/head
HalfLife 2 years ago committed by GitHub
parent b0e3748a5c
commit 802ef931c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .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 }}

Loading…
Cancel
Save