Skip to content

Commit 8b4abbe

Browse files
authored
Fix sed commands in create_release.yml (#8837)
I broke this with #8721. This change makes it harder to break going forward.
1 parent c21e492 commit 8b4abbe

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/create_release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ jobs:
6666
- name: archive
6767
id: archive
6868
run: |
69-
OSNAME=$(echo ${{ matrix.os }} | sed 's/-latest//')
69+
# Ignore all but the first component of the os name
70+
OSNAME=$(echo ${{ matrix.os }} | sed 's/-.*//')
7071
VERSION=$GITHUB_REF_NAME
7172
PKGNAME="binaryen-$VERSION-x86_64-$OSNAME"
7273
TARBALL=$PKGNAME.tar.gz
@@ -83,7 +84,8 @@ jobs:
8384
- name: archive-arm64
8485
id: archive-arm64
8586
run: |
86-
OSNAME=$(echo ${{ matrix.os }} | sed 's/-11-arm//' | sed 's/-14//')
87+
# Ignore all but the first component of the os name
88+
OSNAME=$(echo ${{ matrix.os }} | sed 's/-.*//')
8789
VERSION=$GITHUB_REF_NAME
8890
PKGNAME="binaryen-$VERSION-arm64-$OSNAME"
8991
TARBALL=$PKGNAME.tar.gz

0 commit comments

Comments
 (0)