Skip to content

Commit 682dae7

Browse files
author
Pablo Mendez
committed
fix body release
1 parent 196542c commit 682dae7

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ jobs:
7979
- name: Set Debian Dappnode attended ISO name
8080
run: |
8181
file=$(ls images/Dappnode-debian-*.iso)
82-
attended_filename="${file/images\/Dappnode-/Dappnode-${CORE_VERSION}-}"
83-
cp "$file" "$attended_filename"
82+
filename=$(basename "$file")
83+
attended_filename="${filename/images\/Dappnode-/Dappnode-${CORE_VERSION}-}"
84+
cp "$file" "images/$attended_filename"
8485
8586
- name: Build Debian unattended
8687
run: |
@@ -96,7 +97,8 @@ jobs:
9697
- name: Set Dappnode unattended ISO name
9798
run: |
9899
file=$(ls images/Dappnode-debian-*.iso)
99-
core_filename="${file/images\/Dappnode-/Dappnode-${CORE_VERSION}-}"
100+
filename=$(basename "$file")
101+
core_filename="${filename/images\/Dappnode-/Dappnode-${CORE_VERSION}-}"
100102
unattended_filename="${core_filename/%.iso/-unattended.iso}"
101103
cp "$file" "$unattended_filename"
102104
@@ -129,9 +131,10 @@ jobs:
129131
- name: Set Ubuntu Dappnode unattended ISO name
130132
run: |
131133
file=$(ls images/Dappnode-ubuntu-*.iso)
132-
core_filename="${file/images\/Dappnode-/Dappnode-${CORE_VERSION}-}"
134+
filename=$(basename "$file")
135+
core_filename="${filename/images\/Dappnode-/Dappnode-${CORE_VERSION}-}"
133136
unattended_filename="${core_filename/%.iso/-unattended.iso}"
134-
cp "$file" "$unattended_filename"
137+
cp "$file" "images/$unattended_filename"
135138
136139
- name: Create dappnode_profile.sh
137140
run: |
@@ -165,14 +168,16 @@ jobs:
165168
file=$(find . -type f -name 'Dappnode-ubuntu-*unattended.iso')
166169
SHASUM_UBUNTU_UNATTENDED=$(shasum -a 256 $file)
167170
echo "::set-output name=SHASUM_UBUNTU_UNATTENDED::$SHASUM_UBUNTU_UNATTENDED"
171+
168172
- name: Write release content
169173
run: |
170-
echo "# Versions | Package | Version | |---------------------------------|-----------------------| | bind.dnp.dappnode.eth | ${BIND_VERSION} | | ipfs.dnp.dappnode.eth | ${IPFS_VERSION} | | vpn.dnp.dappnode.eth | ${VPN_VERSION} | | dappmanager.dnp.dappnode.eth | ${DAPPMANAGER_VERSION}| | wifi.dnp.dappnode.eth | ${WIFI_VERSION} | | https.dnp.dappnode.eth | ${HTTPS_VERSION} | | wireguard.dnp.dappnode.eth | ${WIREGUARD_VERSION} | # Changes Changes implemented in release ${CORE_VERSION} # Debian Attended Install and customize Dappnode using the Debian attended ISO: **Dappnode-${CORE_VERSION}-debian-bookworm-amd64.iso** ## ISO SHA-256 Checksum \`\`\` ${{ steps.shasum-debian-attended.outputs.SHASUM_DEBIAN_ATTENDED }} \`\`\` # Debian Unattended Install Debian unattended ISO: **Dappnode-${CORE_VERSION}-debian-bookworm-amd64-unattended.iso** Reboot right after installation. :warning: **Warning**: This will install Dappnode automatically, wiping all partitions. ## ISO SHA-256 Checksum \`\`\` ${{ steps.shasum-debian-unattended.outputs.SHASUM_DEBIAN_UNATTENDED }} \`\`\` # Ubuntu Attended Install using the Ubuntu attended ISO: **Dappnode-${CORE_VERSION}-ubuntu-bookworm-amd64.iso** ## ISO SHA-256 Checksum \`\`\` ${{ steps.shasum-ubuntu-attended.outputs.SHASUM_UBUNTU_ATTENDED }} \`\`\` # Ubuntu Unattended Install using the Ubuntu unattended ISO: **Dappnode-${CORE_VERSION}-ubuntu-bookworm-amd64-unattended.iso** ## ISO SHA-256 Checksum \`\`\` ${{ steps.shasum-ubuntu-unattended.outputs.SHASUM_UBUNTU_UNATTENDED }} \`\`\` # Dappnode for Raspberry Pi 4 (64-bit) [Installation guide →](https://github.com/dappnode/DAppNode/wiki/DAppNodeARM-Installation-Guide) **Default login:** - __user__: dappnode - __password__: dappnodepi" > CHANGELOG.md
174+
echo -en "# Versions\n| Package | Version |\n|---|---|\nbind.dnp.dappnode.eth|${BIND_VERSION}|\n|ipfs.dnp.dappnode.eth|${IPFS_VERSION}|\n|vpn.dnp.dappnode.eth |${VPN_VERSION}|\n|dappmanager.dnp.dappnode.eth|${DAPPMANAGER_VERSION}|\n|wifi.dnp.dappnode.eth|${WIFI_VERSION}|\n|https.dnp.dappnode.eth|${HTTPS_VERSION}|\n|wireguard.dnp.dappnode.eth|${WIREGUARD_VERSION}|\n# Changes\nChanges implemented in release ${CORE_VERSION}\n# Debian Attended version\nInstall and customize DAppNode using the attended ISO: **DAppNode-${CORE_VERSION}-debian-bookworm-amd64.iso**\n\n## ISO SHA-256 Checksum\n\`\`\`\nshasum -a 256 DAppNode-${CORE_VERSION}-debian-bookworm-amd64.iso\n${SHASUM_DEBIAN_ATTENDED}\n\`\`\`\n# Debian Unattended version\nInstall DAppNode easily using the unattended ISO: **DAppNode-${CORE_VERSION}-debian-bookworm-amd64-unattended.iso**\nDo a reboot right after the installation\n:warning: **Warning**: This ISO will install Dappnode automatically, deleting all existing partitions on the disk\n\n## ISO SHA-256 Checksum\n\`\`\`\nshasum -a 256 DAppNode-${CORE_VERSION}-debian-bookworm-amd64-unattended.iso\n${SHASUM_DEBIAN_UNATTENDED}\n\`\`\`\n# Ubuntu Unattended version\nInstall DAppNode easily using the unattended ISO: **DAppNode-${CORE_VERSION}-ubuntu-bookworm-amd64-unattended.iso**\nDo a reboot right after the installation\n:warning: **Warning**: This ISO will install Dappnode automatically, deleting all existing partitions on the disk\n\n## ISO SHA-256 Checksum\n\`\`\`\nshasum -a 256 DAppNode-${CORE_VERSION}-ubuntu-bookworm-amd64-unattended.iso\n${SHASUM_UBUNTU_UNATTENDED}\n\`\`\`\n# DAppNode for Raspberry Pi 4 64bit\n[Instructions](https://github.com/dappnode/DAppNode/wiki/DAppNodeARM-Installation-Guide)\n\ndefault login data:\n - **__user__**: dappnode\n - **__password__**: dappnodepi" > CHANGELOG.md
171175
cat CHANGELOG.md
172-
- name: Check git diff
173-
id: git_diff
174-
run: |
175-
git diff --no-index --word-diff-regex=[^[:space:]] --no-patch .dappnode_profile && echo '::set-output name=HAS_CHANGED::true' || echo '::set-output name=HAS_CHANGED::false'
176+
env:
177+
SHASUM_DEBIAN_ATTENDED: ${{ steps.shasum-debian-attended.outputs.SHASUM_DEBIAN_ATTENDED }}
178+
SHASUM_DEBIAN_UNATTENDED: ${{ steps.shasum-debian-unattended.outputs.SHASUM_DEBIAN_UNATTENDED }}
179+
# SHASUM_UBUNTU_ATTENDED: ${{ steps.shasum-ubuntu-attended.outputs.SHASUM_UBUNTU_ATTENDED }}
180+
SHASUM_UBUNTU_UNATTENDED: ${{ steps.shasum-ubuntu-unattended.outputs.SHASUM_UBUNTU_UNATTENDED }}
176181

177182
- name: Create pre-release
178183
uses: softprops/action-gh-release@v2
@@ -189,12 +194,3 @@ jobs:
189194
body_path: CHANGELOG.md
190195
env:
191196
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
192-
- name: Create Pull Request
193-
if: steps.git_diff.outputs.HAS_CHANGED == 'true'
194-
uses: peter-evans/create-pull-request@v5
195-
with:
196-
add-paths: ".dappnode_profile"
197-
commit-message: "update core packages versions"
198-
branch: "update-profile"
199-
title: "update core packages versions"
200-
delete-branch: true

0 commit comments

Comments
 (0)