Skip to content

Commit 8aad03b

Browse files
committed
.github: fix name extraction and misplaced '*'
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent e94e570 commit 8aad03b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ jobs:
9999
SFX=${{ steps.vars.outputs.sfx }}
100100
for file in *.tar.gz; do
101101
fn=$(basename ${file} .tar.gz)
102-
name=${fn-*}
102+
name=${fn%-*}
103103
arch=${fn##*-}
104104
echo "Found: $name arch: $arch"
105105
tar xf ${file}
106106
rm -f ${file}
107107
mv ${fn}/rootfs-oci ${name}-oci-${arch}${SFX}
108108
tar cfz ${name}-oci-${arch}${SFX}.tar.gz ${name}-oci-${arch}${SFX}
109109
done
110-
ls -la *-oc*i${SFX}/
110+
ls -la *-oci*${SFX}/
111111
ls -l *.tar.gz
112112
- name: Log in to registry
113113
run: |

0 commit comments

Comments
 (0)