From 1233d181f8cd56840cde8a146469cab4571a3fdf Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Tue, 16 May 2023 11:57:52 +0200 Subject: [PATCH] Actions: Remove CX_VERSION replacement --- .github/workflows/build_and_deploy_ext2_img.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/build_and_deploy_ext2_img.yml b/.github/workflows/build_and_deploy_ext2_img.yml index 10b59ab..011cc83 100644 --- a/.github/workflows/build_and_deploy_ext2_img.yml +++ b/.github/workflows/build_and_deploy_ext2_img.yml @@ -25,12 +25,6 @@ on: required: true default: 'base_image.ext2' - CX_VERSION: - type: string - description: Version of CX to use. - required: true - default: "20230515_78" - LOGIN_UID: type: string description: 'UID of the starting process.' @@ -122,14 +116,13 @@ jobs: - run: sudo mv assets examples tun xterm favicon.ico index.html login.html network.js scrollbar.css serviceWorker.js tower.ico $DEPLOY_DIR # This step updates the default index.html file by performing the following actions: - # 1. Replaces all occurrences of UID, GID, and CX_VERSION with their respective input parameters. + # 1. Replaces all occurrences of UID and GID with their respective input parameters. # 2. Replaces all occurrences of IMAGE_URL with the URL to the image. # 3. Replaces all occurrences of DEVICE_TYPE to bytes. - name: Adjust index.html run: | sudo sed -i 's#UID#"${{ github.event.inputs.LOGIN_UID }}"#g' ${{ env.DEPLOY_DIR }}index.html sudo sed -i 's#GID#"${{ github.event.inputs.LOGIN_GID }}"#g' ${{ env.DEPLOY_DIR }}index.html - sudo sed -i 's#CX_VERSION#${{ github.event.inputs.CX_VERSION }}#g' ${{ env.DEPLOY_DIR }}index.html sudo sed -i 's#IMAGE_URL#"${{ env.IMAGE_NAME }}"#g' ${{ env.DEPLOY_DIR }}index.html sudo sed -i 's#DEVICE_TYPE#"bytes"#g' ${{ env.DEPLOY_DIR }}index.html