From 51e1bf44523484f9d3c1932d623d181b013b2427 Mon Sep 17 00:00:00 2001 From: Christoph Stenglein <9399034+cstenglein@users.noreply.github.com> Date: Mon, 15 Jan 2024 19:56:58 +0100 Subject: [PATCH] (ci): move from deprecated set-output to GITHUB_OUTPUT (#4371) --- .github/workflows/amd64-fatpack-image.yml | 8 ++-- .github/workflows/amd64-lean-image.yml | 40 +++++++++---------- .../workflows/amd64-lean-legacyboot-image.yml | 40 +++++++++---------- .github/workflows/arm64-rpi-fatpack-image.yml | 8 ++-- .github/workflows/arm64-rpi-lean-image.yml | 40 +++++++++---------- 5 files changed, 68 insertions(+), 68 deletions(-) diff --git a/.github/workflows/amd64-fatpack-image.yml b/.github/workflows/amd64-fatpack-image.yml index 83631f838..a8a5d0b7d 100644 --- a/.github/workflows/amd64-fatpack-image.yml +++ b/.github/workflows/amd64-fatpack-image.yml @@ -66,9 +66,9 @@ jobs: echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV fi if [[ "${{github.event_name}}" == "pull_request" ]]; then - echo "::set-output name=github_user::${{github.event.pull_request.head.repo.owner.login}}" + echo "GITHUB_USER=${{github.event.pull_request.head.repo.owner.login}}" >> $GITHUB_OUTPUT else - echo "::set-output name=github_user::$(echo ${{github.repository}} | cut -d'/' -f1)" + echo "GITHUB_USER=$(echo ${{github.repository}} | cut -d'/' -f1)" >> $GITHUB_OUTPUT fi - name: Display the build name @@ -76,9 +76,9 @@ jobs: - name: Run the build script run: | - echo "Using the variables: --pack fatpack --github_user ${{steps.set_values.outputs.github_user}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot uefi --desktop none" + echo "Using the variables: --pack fatpack --github_user ${{steps.set_values.outputs.GITHUB_USER}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot uefi --desktop none" cd ci/amd64 - bash packer.build.amd64-debian.sh --pack fatpack --github_user ${{steps.set_values.outputs.github_user}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot uefi --desktop none + bash packer.build.amd64-debian.sh --pack fatpack --github_user ${{steps.set_values.outputs.GITHUB_USER}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot uefi --desktop none - name: Compute checksum of the raw image run: | diff --git a/.github/workflows/amd64-lean-image.yml b/.github/workflows/amd64-lean-image.yml index e384f6a08..5b2427f5b 100644 --- a/.github/workflows/amd64-lean-image.yml +++ b/.github/workflows/amd64-lean-image.yml @@ -7,25 +7,25 @@ concurrency: on: workflow_dispatch: push: - branches: ["dev", "v1.10"] + branches: ['dev', 'v1.10'] paths: - - "build_sdcard.sh" - - "home.admin/bitcoin.install.sh" - - "home.admin/tor.install.sh" - - "home.admin/blitz.i2pd.sh" - - "home.admin/blitz.web.sh" - - "home.admin/blitz.display.sh" - - "ci/amd64/**" + - 'build_sdcard.sh' + - 'home.admin/bitcoin.install.sh' + - 'home.admin/tor.install.sh' + - 'home.admin/blitz.i2pd.sh' + - 'home.admin/blitz.web.sh' + - 'home.admin/blitz.display.sh' + - 'ci/amd64/**' pull_request: - branches: ["dev", "v1.10"] + branches: ['dev', 'v1.10'] paths: - - "build_sdcard.sh" - - "home.admin/bitcoin.install.sh" - - "home.admin/tor.install.sh" - - "home.admin/blitz.i2pd.sh" - - "home.admin/blitz.web.sh" - - "home.admin/blitz.display.sh" - - "ci/amd64/**" + - 'build_sdcard.sh' + - 'home.admin/bitcoin.install.sh' + - 'home.admin/tor.install.sh' + - 'home.admin/blitz.i2pd.sh' + - 'home.admin/blitz.web.sh' + - 'home.admin/blitz.display.sh' + - 'ci/amd64/**' jobs: amd64-image-build: @@ -44,9 +44,9 @@ jobs: echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV fi if [[ "${{github.event_name}}" == "pull_request" ]]; then - echo "::set-output name=github_user::${{github.event.pull_request.head.repo.owner.login}}" + echo "GITHUB_USER=${{github.event.pull_request.head.repo.owner.login}}" >> $GITHUB_OUTPUT else - echo "::set-output name=github_user::$(echo ${{github.repository}} | cut -d'/' -f1)" + echo "GITHUB_USER=$(echo ${{github.repository}} | cut -d'/' -f1)" >> $GITHUB_OUTPUT fi - name: Display the build name @@ -54,9 +54,9 @@ jobs: - name: Run the build script run: | - echo "Using the variables: --pack lean --github_user ${{steps.set_values.outputs.github_user}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot uefi --desktop gnome" + echo "Using the variables: --pack lean --github_user ${{steps.set_values.outputs.GITHUB_USER}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot uefi --desktop gnome" cd ci/amd64 - bash packer.build.amd64-debian.sh --pack lean --github_user ${{steps.set_values.outputs.github_user}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot uefi --desktop gnome + bash packer.build.amd64-debian.sh --pack lean --github_user ${{steps.set_values.outputs.GITHUB_USER}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot uefi --desktop gnome - name: Compute checksum of the raw image run: | diff --git a/.github/workflows/amd64-lean-legacyboot-image.yml b/.github/workflows/amd64-lean-legacyboot-image.yml index 4a361fa79..22abc6ff9 100644 --- a/.github/workflows/amd64-lean-legacyboot-image.yml +++ b/.github/workflows/amd64-lean-legacyboot-image.yml @@ -7,25 +7,25 @@ concurrency: on: workflow_dispatch: push: - branches: ["dev", "v1.10"] + branches: ['dev', 'v1.10'] paths: - - "build_sdcard.sh" - - "home.admin/bitcoin.install.sh" - - "home.admin/tor.install.sh" - - "home.admin/blitz.i2pd.sh" - - "home.admin/blitz.web.sh" - - "home.admin/blitz.display.sh" - - "ci/amd64/**" + - 'build_sdcard.sh' + - 'home.admin/bitcoin.install.sh' + - 'home.admin/tor.install.sh' + - 'home.admin/blitz.i2pd.sh' + - 'home.admin/blitz.web.sh' + - 'home.admin/blitz.display.sh' + - 'ci/amd64/**' pull_request: - branches: ["dev", "v1.10"] + branches: ['dev', 'v1.10'] paths: - - "build_sdcard.sh" - - "home.admin/bitcoin.install.sh" - - "home.admin/tor.install.sh" - - "home.admin/blitz.i2pd.sh" - - "home.admin/blitz.web.sh" - - "home.admin/blitz.display.sh" - - "ci/amd64/**" + - 'build_sdcard.sh' + - 'home.admin/bitcoin.install.sh' + - 'home.admin/tor.install.sh' + - 'home.admin/blitz.i2pd.sh' + - 'home.admin/blitz.web.sh' + - 'home.admin/blitz.display.sh' + - 'ci/amd64/**' jobs: amd64-image-build: @@ -44,9 +44,9 @@ jobs: echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV fi if [[ "${{github.event_name}}" == "pull_request" ]]; then - echo "::set-output name=github_user::${{github.event.pull_request.head.repo.owner.login}}" + echo "GITHUB_USER=${{github.event.pull_request.head.repo.owner.login}}" >> $GITHUB_OUTPUT else - echo "::set-output name=github_user::$(echo ${{github.repository}} | cut -d'/' -f1)" + echo "GITHUB_USER=$(echo ${{github.repository}} | cut -d'/' -f1)" >> $GITHUB_OUTPUT fi - name: Display the build name @@ -54,9 +54,9 @@ jobs: - name: Run the build script run: | - echo "Using the variables: --pack lean --github_user ${{steps.set_values.outputs.github_user}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot bios --desktop none" + echo "Using the variables: --pack lean --github_user ${{steps.set_values.outputs.GITHUB_USER}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot bios --desktop none" cd ci/amd64 - bash packer.build.amd64-debian.sh --pack lean --github_user ${{steps.set_values.outputs.github_user}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot bios --desktop none + bash packer.build.amd64-debian.sh --pack lean --github_user ${{steps.set_values.outputs.GITHUB_USER}} --branch ${{env.BRANCH_NAME}} --preseed_file preseed.cfg --boot bios --desktop none - name: Compute checksum of the raw image run: | diff --git a/.github/workflows/arm64-rpi-fatpack-image.yml b/.github/workflows/arm64-rpi-fatpack-image.yml index b44a7ad90..8734c65cd 100644 --- a/.github/workflows/arm64-rpi-fatpack-image.yml +++ b/.github/workflows/arm64-rpi-fatpack-image.yml @@ -66,9 +66,9 @@ jobs: echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV fi if [[ "${{github.event_name}}" == "pull_request" ]]; then - echo "::set-output name=github_user::${{github.event.pull_request.head.repo.owner.login}}" + echo "GITHUB_USER=${{github.event.pull_request.head.repo.owner.login}}" >> $GITHUB_OUTPUT else - echo "::set-output name=github_user::$(echo ${{github.repository}} | cut -d'/' -f1)" + echo "GITHUB_USER=$(echo ${{github.repository}} | cut -d'/' -f1)" >> $GITHUB_OUTPUT fi - name: Display the build name @@ -76,9 +76,9 @@ jobs: - name: Run the build script run: | - echo "Using the variables: --pack fatpack --github_user ${{steps.set_values.outputs.github_user}} --branch ${{env.BRANCH_NAME}}" + echo "Using the variables: --pack fatpack --github_user ${{steps.set_values.outputs.GITHUB_USER}} --branch ${{env.BRANCH_NAME}}" cd ci/arm64-rpi - bash packer.build.arm64-rpi.sh --pack fatpack --github_user ${{steps.set_values.outputs.github_user}} --branch ${{env.BRANCH_NAME}} + bash packer.build.arm64-rpi.sh --pack fatpack --github_user ${{steps.set_values.outputs.GITHUB_USER}} --branch ${{env.BRANCH_NAME}} - name: Compute checksum of the raw image run: | diff --git a/.github/workflows/arm64-rpi-lean-image.yml b/.github/workflows/arm64-rpi-lean-image.yml index 212147f65..06966513f 100644 --- a/.github/workflows/arm64-rpi-lean-image.yml +++ b/.github/workflows/arm64-rpi-lean-image.yml @@ -7,25 +7,25 @@ concurrency: on: workflow_dispatch: push: - branches: ["dev", "v1.10"] + branches: ['dev', 'v1.10'] paths: - - "build_sdcard.sh" - - "home.admin/bitcoin.install.sh" - - "home.admin/tor.install.sh" - - "home.admin/blitz.i2pd.sh" - - "home.admin/blitz.web.sh" - - "home.admin/blitz.display.sh" - - "ci/arm64-rpi/**" + - 'build_sdcard.sh' + - 'home.admin/bitcoin.install.sh' + - 'home.admin/tor.install.sh' + - 'home.admin/blitz.i2pd.sh' + - 'home.admin/blitz.web.sh' + - 'home.admin/blitz.display.sh' + - 'ci/arm64-rpi/**' pull_request: - branches: ["dev", "v1.10"] + branches: ['dev', 'v1.10'] paths: - - "build_sdcard.sh" - - "home.admin/bitcoin.install.sh" - - "home.admin/tor.install.sh" - - "home.admin/blitz.i2pd.sh" - - "home.admin/blitz.web.sh" - - "home.admin/blitz.display.sh" - - "ci/arm64-rpi/**" + - 'build_sdcard.sh' + - 'home.admin/bitcoin.install.sh' + - 'home.admin/tor.install.sh' + - 'home.admin/blitz.i2pd.sh' + - 'home.admin/blitz.web.sh' + - 'home.admin/blitz.display.sh' + - 'ci/arm64-rpi/**' jobs: arm64-rpi-image-build: @@ -44,9 +44,9 @@ jobs: echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV fi if [[ "${{github.event_name}}" == "pull_request" ]]; then - echo "::set-output name=github_user::${{github.event.pull_request.head.repo.owner.login}}" + echo "GITHUB_USER=${{github.event.pull_request.head.repo.owner.login}}" >> $GITHUB_OUTPUT else - echo "::set-output name=github_user::$(echo ${{github.repository}} | cut -d'/' -f1)" + echo "GITHUB_USER=$(echo ${{github.repository}} | cut -d'/' -f1)" >> $GITHUB_OUTPUT fi - name: Display the build name @@ -54,9 +54,9 @@ jobs: - name: Run the build script run: | - echo "Using the variables: --pack lean --github_user ${{steps.set_values.outputs.github_user}} --branch ${{env.BRANCH_NAME}}" + echo "Using the variables: --pack lean --github_user ${{steps.set_values.outputs.GITHUB_USER}} --branch ${{env.BRANCH_NAME}}" cd ci/arm64-rpi - bash packer.build.arm64-rpi.sh --pack lean --github_user ${{steps.set_values.outputs.github_user}} --branch ${{env.BRANCH_NAME}} + bash packer.build.arm64-rpi.sh --pack lean --github_user ${{steps.set_values.outputs.GITHUB_USER}} --branch ${{env.BRANCH_NAME}} - name: Compute checksum of the raw image run: |