Skip to content

Commit 3208c98

Browse files
committed
More complexity
1 parent 4f6d2ff commit 3208c98

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/MainDistributionPipeline.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,39 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15+
get_branch:
16+
name: Get name of stable branch
17+
outputs:
18+
handle: ${{ steps.pass_through.outputs.branch }}
19+
env:
20+
DUCKDB_STABLE_BRANCH: ${{ vars.DUCKDB_STABLE_BRANCH }}
21+
steps:
22+
- name: Pass through
23+
id: pass_through
24+
shell: bash
25+
run: |
26+
echo "branch=$DUCKDB_STABLE_BRANCH" >> "$GITHUB_OUTPUT"
27+
1528
duckdb-stable-build:
1629
name: Build extension binaries
30+
needs:
31+
get_branch
1732
uses: duckdb/extension-ci-tools/.github/workflows/_extension_distribution.yml@main
1833
with:
19-
duckdb_version: ${{ vars.DUCKDB_STABLE_BRANCH }}
34+
duckdb_version: ${{ needs.get_branch.outputs.branch }}
2035
ci_tools_version: main
2136
extension_name: postgres_scanner
2237
exclude_archs: 'wasm_mvp;wasm_eh;wasm_threads;windows_amd64_mingw'
2338

2439
duckdb-stable-deploy:
2540
name: Deploy extension binaries
41+
needs:
42+
get_branch
2643
needs: duckdb-stable-build
2744
uses: duckdb/extension-ci-tools/.github/workflows/_extension_deploy.yml@main
2845
secrets: inherit
2946
with:
30-
duckdb_version: ${{ vars.DUCKDB_STABLE_BRANCH }}
47+
duckdb_version: ${{ needs.get_branch.outputs.branch }}
3148
ci_tools_version: main
3249
extension_name: postgres_scanner
3350
exclude_archs: 'wasm_mvp;wasm_eh;wasm_threads;windows_amd64_mingw'

0 commit comments

Comments
 (0)