Skip to content

Commit 7aa744e

Browse files
committed
More complexity
1 parent 4f6d2ff commit 7aa744e

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/MainDistributionPipeline.yml

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

1414
jobs:
15+
get_branch:
16+
name: Get name of stable branch
17+
runs-on: ubuntu-latest
18+
outputs:
19+
handle: ${{ steps.pass_through.outputs.branch }}
20+
env:
21+
DUCKDB_STABLE_BRANCH: ${{ vars.DUCKDB_STABLE_BRANCH }}
22+
steps:
23+
- name: Pass through
24+
id: pass_through
25+
shell: bash
26+
run: |
27+
echo "branch=$DUCKDB_STABLE_BRANCH" >> "$GITHUB_OUTPUT"
28+
1529
duckdb-stable-build:
1630
name: Build extension binaries
31+
needs:
32+
- get_branch
1733
uses: duckdb/extension-ci-tools/.github/workflows/_extension_distribution.yml@main
1834
with:
19-
duckdb_version: ${{ vars.DUCKDB_STABLE_BRANCH }}
35+
duckdb_version: ${{ needs.get_branch.outputs.branch }}
2036
ci_tools_version: main
2137
extension_name: postgres_scanner
2238
exclude_archs: 'wasm_mvp;wasm_eh;wasm_threads;windows_amd64_mingw'
2339

2440
duckdb-stable-deploy:
2541
name: Deploy extension binaries
26-
needs: duckdb-stable-build
42+
needs:
43+
- get_branch
44+
- duckdb-stable-build
2745
uses: duckdb/extension-ci-tools/.github/workflows/_extension_deploy.yml@main
2846
secrets: inherit
2947
with:
30-
duckdb_version: ${{ vars.DUCKDB_STABLE_BRANCH }}
48+
duckdb_version: ${{ needs.get_branch.outputs.branch }}
3149
ci_tools_version: main
3250
extension_name: postgres_scanner
3351
exclude_archs: 'wasm_mvp;wasm_eh;wasm_threads;windows_amd64_mingw'

0 commit comments

Comments
 (0)