Skip to content

Commit

Permalink
add actions workflow validation add actions workflow validation (#1903)
Browse files Browse the repository at this point in the history
fix

Signed-off-by: kpango <[email protected]>

Signed-off-by: kpango <[email protected]>
  • Loading branch information
kpango authored Dec 16, 2022
1 parent 7509990 commit 35ed76c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/dockers-agent-ngt-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dockers-agent-sidecar-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dockers-ci-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dockers-dev-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dockers-discoverer-k8s-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dockers-gateway-filter-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dockers-gateway-lb-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dockers-helm-operator-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dockers-loadtest-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dockers-manager-index-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 35ed76c

Please sign in to comment.