From ec7a34f2b3cd0ba24bcca3438cc1242acf2a89d1 Mon Sep 17 00:00:00 2001 From: Aurelijus Banelis Date: Wed, 13 Sep 2023 09:42:45 +0300 Subject: [PATCH] Depend on Approval of Pull request --- .github/workflows/test-go.yml | 9 ++++----- .github/workflows/test-node.yml | 9 ++++----- .github/workflows/test-php.yml | 9 ++++----- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test-go.yml b/.github/workflows/test-go.yml index a5e0f60..3bc3816 100644 --- a/.github/workflows/test-go.yml +++ b/.github/workflows/test-go.yml @@ -1,7 +1,7 @@ name: Run tests on: - pull_request_target: + pull_request: types: - opened - synchronize @@ -11,16 +11,15 @@ on: - reopened paths: - 'go/**' + push: + paths: + - 'go/**' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{github.event.pull_request_target.head.ref}} - repository: ${{github.event.pull_request_target.head.repo.full_name}} - name: Set up Go uses: actions/setup-go@v4 diff --git a/.github/workflows/test-node.yml b/.github/workflows/test-node.yml index 61ac76e..963e97a 100644 --- a/.github/workflows/test-node.yml +++ b/.github/workflows/test-node.yml @@ -1,7 +1,7 @@ name: Run tests on: - pull_request_target: + pull_request: types: - opened - synchronize @@ -11,16 +11,15 @@ on: - reopened paths: - 'js/**' + push: + paths: + - 'js/**' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{github.event.pull_request_target.head.ref}} - repository: ${{github.event.pull_request_target.head.repo.full_name}} - name: Set up Go uses: actions/setup-go@v4 diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index e38699a..e80fb99 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -1,7 +1,7 @@ name: Run tests on: - pull_request_target: + pull_request: types: - opened - synchronize @@ -11,16 +11,15 @@ on: - reopened paths: - 'php/**' + push: + paths: + - 'php/**' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{github.event.pull_request_target.head.ref}} - repository: ${{github.event.pull_request_target.head.repo.full_name}} - name: Set up Go uses: actions/setup-go@v4