diff --git a/.github/workflows/dockers-agent-ngt-image.yml b/.github/workflows/dockers-agent-ngt-image.yml index 1346c62a22..14ac19f507 100644 --- a/.github/workflows/dockers-agent-ngt-image.yml +++ b/.github/workflows/dockers-agent-ngt-image.yml @@ -55,7 +55,6 @@ on: - "versions/GO_VERSION" - "versions/NGT_VERSION" pull_request_target: - types: [labeled] paths: - ".github/actions/docker-build/actions.yaml" - ".github/workflows/dockers-agent-ngt-image.yml" @@ -77,7 +76,7 @@ jobs: strategy: max-parallel: 4 runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false) || (github.event.pull_request_head.repo.fork == true && github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} steps: - uses: actions/checkout@v3 - name: set git config diff --git a/.github/workflows/dockers-agent-sidecar-image.yml b/.github/workflows/dockers-agent-sidecar-image.yml index ac58429a09..4addbacd98 100644 --- a/.github/workflows/dockers-agent-sidecar-image.yml +++ b/.github/workflows/dockers-agent-sidecar-image.yml @@ -55,7 +55,6 @@ on: - "dockers/agent/sidecar/Dockerfile" - "versions/GO_VERSION" pull_request_target: - types: [labeled] paths: - ".github/actions/docker-build/actions.yaml" - ".github/workflows/dockers-agent-sidecar-image.yml" @@ -77,7 +76,7 @@ jobs: strategy: max-parallel: 4 runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false) || (github.event.pull_request_head.repo.fork == true && github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} steps: - uses: actions/checkout@v3 - name: set git config diff --git a/.github/workflows/dockers-ci-container-image.yml b/.github/workflows/dockers-ci-container-image.yml index 90085f187a..a5b9907d49 100644 --- a/.github/workflows/dockers-ci-container-image.yml +++ b/.github/workflows/dockers-ci-container-image.yml @@ -36,7 +36,6 @@ on: - "versions/GO_VERSION" - "versions/NGT_VERSION" pull_request_target: - types: [labeled] paths: - ".github/actions/docker-build/actions.yaml" - ".github/workflows/dockers-ci-container-image.yml" @@ -51,7 +50,7 @@ jobs: strategy: max-parallel: 4 runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false) || (github.event.pull_request_head.repo.fork == true && github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} steps: - uses: actions/checkout@v3 - name: set git config diff --git a/.github/workflows/dockers-dev-container-image.yml b/.github/workflows/dockers-dev-container-image.yml index 6682c296ea..95cea09d73 100644 --- a/.github/workflows/dockers-dev-container-image.yml +++ b/.github/workflows/dockers-dev-container-image.yml @@ -30,7 +30,6 @@ on: - "dockers/ci/**" - "dockers/dev/**" pull_request_target: - types: [labeled] paths: - ".github/actions/docker-build/actions.yaml" - ".github/workflows/dockers-dev-container-image.yml" @@ -44,7 +43,7 @@ jobs: strategy: max-parallel: 4 runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false) || (github.event.pull_request_head.repo.fork == true && github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} steps: - uses: actions/checkout@v3 - name: set git config diff --git a/.github/workflows/dockers-discoverer-k8s-image.yml b/.github/workflows/dockers-discoverer-k8s-image.yml index f2a3c118cc..31350074c8 100644 --- a/.github/workflows/dockers-discoverer-k8s-image.yml +++ b/.github/workflows/dockers-discoverer-k8s-image.yml @@ -51,7 +51,6 @@ on: - "dockers/discoverer/k8s/Dockerfile" - "versions/GO_VERSION" pull_request_target: - types: [labeled] paths: - ".github/actions/docker-build/actions.yaml" - ".github/workflows/dockers-discoverer-k8s-image.yml" @@ -71,7 +70,7 @@ jobs: strategy: max-parallel: 4 runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false) || (github.event.pull_request_head.repo.fork == true && github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} steps: - uses: actions/checkout@v3 - name: set git config diff --git a/.github/workflows/dockers-gateway-filter-image.yml b/.github/workflows/dockers-gateway-filter-image.yml index 5efe7bb4bf..0ff368f812 100644 --- a/.github/workflows/dockers-gateway-filter-image.yml +++ b/.github/workflows/dockers-gateway-filter-image.yml @@ -57,7 +57,6 @@ on: - "dockers/gateway/filter/Dockerfile" - "versions/GO_VERSION" pull_request_target: - types: [labeled] paths: - ".github/actions/docker-build/actions.yaml" - ".github/workflows/dockers-gateway-filter-image.yml" @@ -80,7 +79,7 @@ jobs: strategy: max-parallel: 4 runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false) || (github.event.pull_request_head.repo.fork == true && github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} steps: - uses: actions/checkout@v3 - name: set git config diff --git a/.github/workflows/dockers-gateway-lb-image.yml b/.github/workflows/dockers-gateway-lb-image.yml index b88b0a6770..f934bee142 100644 --- a/.github/workflows/dockers-gateway-lb-image.yml +++ b/.github/workflows/dockers-gateway-lb-image.yml @@ -57,7 +57,6 @@ on: - "dockers/gateway/lb/Dockerfile" - "versions/GO_VERSION" pull_request_target: - types: [labeled] paths: - ".github/actions/docker-build/actions.yaml" - ".github/workflows/dockers-gateway-lb-image.yml" @@ -80,7 +79,7 @@ jobs: strategy: max-parallel: 4 runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false) || (github.event.pull_request_head.repo.fork == true && github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} steps: - uses: actions/checkout@v3 - name: set git config diff --git a/.github/workflows/dockers-helm-operator-image.yml b/.github/workflows/dockers-helm-operator-image.yml index c5271399e6..9adecc6d1f 100644 --- a/.github/workflows/dockers-helm-operator-image.yml +++ b/.github/workflows/dockers-helm-operator-image.yml @@ -47,7 +47,6 @@ on: - "charts/vald-helm-operator/templates/**" - "versions/OPERATOR_SDK_VERSION" pull_request_target: - types: [labeled] paths: - ".github/actions/docker-build/actions.yaml" - ".github/workflows/dockers-helm-operator-image.yml" @@ -65,7 +64,7 @@ jobs: strategy: max-parallel: 4 runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false) || (github.event.pull_request_head.repo.fork == true && github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} steps: - uses: actions/checkout@v3 - name: set git config diff --git a/.github/workflows/dockers-loadtest-image.yml b/.github/workflows/dockers-loadtest-image.yml index 32c9852785..2153545d8b 100644 --- a/.github/workflows/dockers-loadtest-image.yml +++ b/.github/workflows/dockers-loadtest-image.yml @@ -53,7 +53,6 @@ on: - "dockers/tools/cli/loadtest/Dockerfile" - "versions/GO_VERSION" pull_request_target: - types: [labeled] paths: - ".github/actions/docker-build/actions.yaml" - ".github/workflows/dockers-loadtest-image.yml" @@ -72,7 +71,7 @@ on: jobs: build: runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false) || (github.event.pull_request_head.repo.fork == true && github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} strategy: max-parallel: 4 steps: diff --git a/.github/workflows/dockers-manager-index-image.yml b/.github/workflows/dockers-manager-index-image.yml index 688105d5b6..ddecbfedce 100644 --- a/.github/workflows/dockers-manager-index-image.yml +++ b/.github/workflows/dockers-manager-index-image.yml @@ -53,7 +53,6 @@ on: - "dockers/manager/index/Dockerfile" - "versions/GO_VERSION" pull_request_target: - types: [labeled] paths: - ".github/actions/docker-build/actions.yaml" - ".github/workflows/dockers-manager-index-image.yml" @@ -74,7 +73,7 @@ jobs: strategy: max-parallel: 4 runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} + if: ${{ (github.event_name == 'pull_request' && github.event.pull_request_head.repo.fork == false) || (github.event.pull_request_head.repo.fork == true && github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci/approved')) }} steps: - uses: actions/checkout@v3 - name: set git config