Skip to content

Commit 86b8103

Browse files
committed
Fix meta.yaml patching: update sed to match Jinja variables
1 parent 86e75e9 commit 86b8103

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/conda_release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ jobs:
4040
- name: Patch conda-recipe/meta.yaml
4141
run: |
4242
cd conda-recipe
43-
sed -i "s/^ version: .*/ version: ${{ steps.vars.outputs.VERSION }}/" meta.yaml
44-
sed -i "s/^ sha256: .*/ sha256: ${{ steps.vars.outputs.SHA256 }}/" meta.yaml
43+
44+
# Replace the Jinja “{% set version = "..." %}” line:
45+
sed -i "s|^{% set version = \".*\" %}|{% set version = \"${{ steps.vars.outputs.VERSION }}\" %}|" meta.yaml
46+
47+
# Replace the “ sha256: ...” line (two‐space indentation under source:)
48+
sed -i "s|^ sha256: .*| sha256: ${{ steps.vars.outputs.SHA256 }}|" meta.yaml
4549
4650
# 5) Build the conda package
4751
- name: Build conda package

0 commit comments

Comments
 (0)