From 26f97cb523a24cdb8cb1d2395325beeee554a82d Mon Sep 17 00:00:00 2001 From: jneilliii Date: Sun, 14 Nov 2021 12:16:26 -0500 Subject: [PATCH] add hostname and change release title and img name --- .github/workflows/custopize.yml | 4 ++-- scripts/05-update-hostname | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 scripts/05-update-hostname diff --git a/.github/workflows/custopize.yml b/.github/workflows/custopize.yml index 3020c33..2465784 100644 --- a/.github/workflows/custopize.yml +++ b/.github/workflows/custopize.yml @@ -79,7 +79,7 @@ jobs: OCTOPI_VERSION="${{ steps.octopi_latestrelease.outputs.release }}" OCTOPRINT_VERSION="${{ env.OCTOPRINT_VERSION }}" - IMAGE="octopi-$OCTOPI_VERSION-octoprint-$OCTOPRINT_VERSION-simplyprint-${{ steps.simplyprint_version.outputs.release }}.img" + IMAGE="SimplyPi-${{ steps.octopi_latestrelease.outputs.release }}-sp${{ steps.simplyprint_version.outputs.release }}-octoprint${{ env.OCTOPRINT_VERSION }}.img" echo "IMAGE=$IMAGE" >> $GITHUB_ENV cd build @@ -90,7 +90,7 @@ jobs: - name: "📝 Prepare release" run: | - RELEASE_NAME="OctoPi ${{ steps.octopi_latestrelease.outputs.release }} with OctoPrint ${{ env.OCTOPRINT_VERSION }} and SimplyPrint ${{ steps.simplyprint_version.outputs.release }}" + RELEASE_NAME="SimplyPi with OctoPrint ${{ env.OCTOPRINT_VERSION }}, SimplyPrint ${{ steps.simplyprint_version.outputs.release }} (based on OctoPi ${{ steps.octopi_latestrelease.outputs.release }})" echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV RELEASE_TAG="${{ steps.octopi_latestrelease.outputs.release }}.op${{ env.OCTOPRINT_VERSION }}.sp${{ steps.simplyprint_version.outputs.release }}" diff --git a/scripts/05-update-hostname b/scripts/05-update-hostname new file mode 100644 index 0000000..bc149d7 --- /dev/null +++ b/scripts/05-update-hostname @@ -0,0 +1,9 @@ +set -x +set -e + +export LC_ALL=C + +source /common.sh +install_cleanup_trap + +echo "simplypi" > /boot/octopi-hostname.txt \ No newline at end of file