Skip to content

Commit c146bc3

Browse files
author
Pablo Mendez
committed
fix naming regex
1 parent 70f9649 commit c146bc3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ jobs:
8080
run: |
8181
file=$(ls images/Dappnode-debian-*.iso)
8282
filename=$(basename "$file") # Extract only the file name (without path)
83-
attended_filename="images/Dappnode-${CORE_VERSION}-debian-${filename#Dappnode-debian-}" # Modify the filename using CORE_VERSION
84-
sudo cp "$file" "$attended_filename"
83+
core_filename="Dappnode-${CORE_VERSION}-debian-${filename#Dappnode-debian-}" # Modify the filename using CORE_VERSION
84+
attended_filename="${core_filename/%.iso/-attended.iso}" # Replace .iso with -attended.iso
85+
sudo cp "$file" "images/$attended_filename"
8586
8687
- name: Build Debian unattended
8788
run: |
@@ -167,9 +168,9 @@ jobs:
167168
tag_name: ${{ github.event.inputs.core }}
168169
prerelease: true
169170
files: |
170-
./images/Dappnode-${CORE_VERSION}-debian-*.iso
171-
./images/Dappnode-${CORE_VERSION}-debian-*-unattended.iso
172-
./images/Dappnode-${CORE_VERSION}-ubuntu-*-unattended.iso
171+
./images/Dappnode-*-debian-*-attended.iso
172+
./images/Dappnode-*-debian-*-unattended.iso
173+
./images/Dappnode-*-ubuntu-*-unattended.iso
173174
./scripts/dappnode_install*.sh
174175
./scripts/dappnode_uninstall*.sh
175176
dappnode_profile.sh

0 commit comments

Comments
 (0)