diff --git a/.github/workflows/dev-deployment.yml b/.github/workflows/dev-deployment.yml index 7e06fdd6c..553bbbb48 100644 --- a/.github/workflows/dev-deployment.yml +++ b/.github/workflows/dev-deployment.yml @@ -8,7 +8,7 @@ on: jobs: deploy_to_dev: - if: github.event.repository.fork == false + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest environment: diff --git a/.github/workflows/team-deployment.yml b/.github/workflows/team-deployment.yml index 5c61ae919..6e8de6d6a 100644 --- a/.github/workflows/team-deployment.yml +++ b/.github/workflows/team-deployment.yml @@ -8,7 +8,7 @@ on: jobs: kimiko-golang: - if: github.event.repository.fork == false + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest environment: @@ -27,7 +27,7 @@ jobs: ./scripts/team_deploy.sh kimiko-golang ${{ vars.PORT }} kimiko-csharp: - if: github.event.repository.fork == false + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest environment: @@ -46,7 +46,7 @@ jobs: ./scripts/team_deploy.sh kimiko-csharp ${{ vars.PORT }} anchor-java: - if: github.event.repository.fork == false + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest environment: @@ -65,7 +65,7 @@ jobs: ./scripts/team_deploy.sh anchor-java ${{ vars.PORT }} anchor-python: - if: github.event.repository.fork == false + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest environment: @@ -84,7 +84,7 @@ jobs: ./scripts/team_deploy.sh anchor-python ${{ vars.PORT }} bulldozer-php: - if: github.event.repository.fork == false + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest environment: @@ -103,7 +103,7 @@ jobs: ./scripts/team_deploy.sh bulldozer-php ${{ vars.PORT }} starlight-nestjs: - if: github.event.repository.fork == false + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest environment: @@ -122,7 +122,7 @@ jobs: ./scripts/team_deploy.sh starlight-nestjs ${{ vars.PORT }} panther-expressjs: - if: github.event.repository.fork == false + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest environment: