Skip to content

Commit 2450402

Browse files
[no-relnote] Fix E2E matrix conditional
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
1 parent 0920018 commit 2450402

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
- name: Generate Commit Short SHA
3434
id: version
3535
run: echo "version=$(echo $GITHUB_SHA | cut -c1-8)" >> "$GITHUB_OUTPUT"
36+
- name: Check if pull request
37+
id: is_pull_request
38+
run: echo "is_pull_request=$(echo $GITHUB_REF | grep -q 'refs/pull/' && echo 'true' || echo 'false')" >> "$GITHUB_OUTPUT"
3639

3740
golang:
3841
uses: ./.github/workflows/golang.yaml
@@ -51,3 +54,4 @@ jobs:
5154
uses: ./.github/workflows/e2e.yaml
5255
with:
5356
version: ${{ needs.variables.outputs.version }}
57+
is_pull_request: ${{ needs.variables.outputs.is_pull_request }}

.github/workflows/e2e.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
version:
2121
required: true
2222
type: string
23+
is_pull_request:
24+
required: true
25+
type: boolean
2326
secrets:
2427
AWS_ACCESS_KEY_ID:
2528
required: true
@@ -39,13 +42,11 @@ jobs:
3942
runs-on: linux-amd64-cpu4
4043
strategy:
4144
matrix:
42-
is_pull_request:
43-
- ${{!( startsWith(github.ref, 'refs/pull/') )}}
4445
driver_branch:
4546
- 550
4647
- 575
4748
exclude:
48-
- is_pull_request: true
49+
- is_pull_request: ${{ inputs.is_pull_request }}
4950
driver_branch: 575
5051
steps:
5152
- name: Check out code

0 commit comments

Comments
 (0)