From be24036a1be4d76c961ed9d93196a5d01d794c80 Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Tue, 24 Nov 2020 21:39:22 +0800 Subject: [PATCH] ci: unset --release for PR --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fd676f1..4f7d615 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,12 +20,12 @@ jobs: - name: Test run: coverage run -m pytest - name: Update(master) - if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request' }} env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} run: coverage run -a ./update.py --release - name: Update - if: ${{ github.ref != 'refs/heads/master' }} + if: ${{ !(github.ref == 'refs/heads/master' && github.event_name != 'pull_request') }} run: coverage run -a ./update.py - name: Report coverage env: