From d8e29e8e2d227145151b1ba376939ad1708ea43a Mon Sep 17 00:00:00 2001 From: Soha Jin Date: Thu, 23 Mar 2023 14:07:46 +0800 Subject: [PATCH] fix deploy --- .github/workflows/deploy.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 41c4cb7..4188320 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,7 +15,11 @@ jobs: check: runs-on: ubuntu-latest environment: publish - if: github.ref == 'refs/heads/master' && github.event.workflow_run.conclusion == 'success' + if: | + true + && github.ref == 'refs/heads/master' + && github.event.workflow_run.head_repository.full_name == github.event.repository.full_name + && github.event.workflow_run.conclusion == 'success' outputs: secrets: ${{ steps.checker.outputs.secrets }} steps: @@ -66,4 +70,4 @@ jobs: ALIOSS_SK: ${{ secrets.ALIOSS_SK }} ALIOSS_BUCKET: ${{ vars.ALIOSS_BUCKET }} ALIOSS_ENDPOINT: ${{ vars.ALIOSS_ENDPOINT }} - run: python3 .deploy.py -p / build + run: python3 .deploy.py -p open/ build