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