Skip to content

Commit

Permalink
ci/workflows: fix matrix generation
Browse files Browse the repository at this point in the history
With recent changes matrix strategies added to conformance tests.
Matrix is generated from action yaml files, which are currently pulled
from PR which not exists. This fails the workflows.

This commit fixes the issue by pulling from the main.

Signed-off-by: Birol Bilgin <birol@cilium.io>
  • Loading branch information
brlbil authored and borkmann committed Jun 21, 2023
1 parent d9b9e65 commit 34aaeae
Show file tree
Hide file tree
Showing 20 changed files with 40 additions and 40 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/conformance-aks-v1.11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-aks-v1.12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-aks-v1.13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-aws-cni-v1.11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-aws-cni-v1.12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-aws-cni-v1.13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-aws-cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-eks-v1.11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-eks-v1.12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-eks-v1.13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-externalworkloads-v1.11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-externalworkloads-v1.12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-externalworkloads-v1.13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-externalworkloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-gke-v1.11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-gke-v1.12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-gke-v1.13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout PR code
- name: Checkout main branch
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ needs.setup-report.outputs.sha }}
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Convert YAML to JSON
Expand Down

0 comments on commit 34aaeae

Please sign in to comment.