Skip to content

Commit a74f3dc

Browse files
authored
chore: Stabilize workflow job names across CLI version updates (#859)
fix(ci): stabilize workflow job names across CLI version updates
1 parent c704b92 commit a74f3dc

File tree

4 files changed

+1569
-29114
lines changed

4 files changed

+1569
-29114
lines changed

.github/workflows/example.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,22 @@ permissions:
1212

1313
jobs:
1414
cloudquery-sync:
15+
name: cloudquery-sync (${{ matrix.label }})
1516
permissions:
1617
id-token: write
1718
contents: read
1819
runs-on: ${{ matrix.os }}
1920
strategy:
2021
matrix:
21-
dbversion: ["postgres:latest"]
22-
cloudquery-version: ["6.35.2", "v6.35.2"]
23-
os: [ubuntu-latest]
22+
include:
23+
- label: "without-v-prefix"
24+
dbversion: "postgres:latest"
25+
cloudquery-version: "6.35.2"
26+
os: ubuntu-latest
27+
- label: "with-v-prefix"
28+
dbversion: "postgres:latest"
29+
cloudquery-version: "v6.35.2"
30+
os: ubuntu-latest
2431
fail-fast: false
2532
services:
2633
postgres:

.github/workflows/example_matrix.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
types: [opened, synchronize, reopened]
88
permissions:
99
contents: read
10+
env:
11+
CLOUDQUERY_VERSION: "v6.35.2"
1012
jobs:
1113
cloudquery:
1214
permissions:
@@ -41,7 +43,7 @@ jobs:
4143
- name: Setup CloudQuery
4244
uses: ./.
4345
with:
44-
version: "v6.35.2"
46+
version: ${{ env.CLOUDQUERY_VERSION }}
4547
- name: Sync with CloudQuery
4648
run: cloudquery sync example_configs/spec.yml --log-console --shard ${{ matrix.shard }}
4749
env:

0 commit comments

Comments
 (0)