(ci): move from deprecated set-output to GITHUB_OUTPUT (#4371)

This commit is contained in:
Christoph Stenglein 2024-01-15 19:56:58 +01:00 committed by GitHub
parent c0ab542310
commit 51e1bf4452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 68 additions and 68 deletions

View file

@ -66,9 +66,9 @@ jobs:
echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
fi fi
if [[ "${{github.event_name}}" == "pull_request" ]]; then 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 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 fi
- name: Display the build name - name: Display the build name
@ -76,9 +76,9 @@ jobs:
- name: Run the build script - name: Run the build script
run: | 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 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 - name: Compute checksum of the raw image
run: | run: |

View file

@ -7,25 +7,25 @@ concurrency:
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: ["dev", "v1.10"] branches: ['dev', 'v1.10']
paths: paths:
- "build_sdcard.sh" - 'build_sdcard.sh'
- "home.admin/bitcoin.install.sh" - 'home.admin/bitcoin.install.sh'
- "home.admin/tor.install.sh" - 'home.admin/tor.install.sh'
- "home.admin/blitz.i2pd.sh" - 'home.admin/blitz.i2pd.sh'
- "home.admin/blitz.web.sh" - 'home.admin/blitz.web.sh'
- "home.admin/blitz.display.sh" - 'home.admin/blitz.display.sh'
- "ci/amd64/**" - 'ci/amd64/**'
pull_request: pull_request:
branches: ["dev", "v1.10"] branches: ['dev', 'v1.10']
paths: paths:
- "build_sdcard.sh" - 'build_sdcard.sh'
- "home.admin/bitcoin.install.sh" - 'home.admin/bitcoin.install.sh'
- "home.admin/tor.install.sh" - 'home.admin/tor.install.sh'
- "home.admin/blitz.i2pd.sh" - 'home.admin/blitz.i2pd.sh'
- "home.admin/blitz.web.sh" - 'home.admin/blitz.web.sh'
- "home.admin/blitz.display.sh" - 'home.admin/blitz.display.sh'
- "ci/amd64/**" - 'ci/amd64/**'
jobs: jobs:
amd64-image-build: amd64-image-build:
@ -44,9 +44,9 @@ jobs:
echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
fi fi
if [[ "${{github.event_name}}" == "pull_request" ]]; then 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 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 fi
- name: Display the build name - name: Display the build name
@ -54,9 +54,9 @@ jobs:
- name: Run the build script - name: Run the build script
run: | 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 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 - name: Compute checksum of the raw image
run: | run: |

View file

@ -7,25 +7,25 @@ concurrency:
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: ["dev", "v1.10"] branches: ['dev', 'v1.10']
paths: paths:
- "build_sdcard.sh" - 'build_sdcard.sh'
- "home.admin/bitcoin.install.sh" - 'home.admin/bitcoin.install.sh'
- "home.admin/tor.install.sh" - 'home.admin/tor.install.sh'
- "home.admin/blitz.i2pd.sh" - 'home.admin/blitz.i2pd.sh'
- "home.admin/blitz.web.sh" - 'home.admin/blitz.web.sh'
- "home.admin/blitz.display.sh" - 'home.admin/blitz.display.sh'
- "ci/amd64/**" - 'ci/amd64/**'
pull_request: pull_request:
branches: ["dev", "v1.10"] branches: ['dev', 'v1.10']
paths: paths:
- "build_sdcard.sh" - 'build_sdcard.sh'
- "home.admin/bitcoin.install.sh" - 'home.admin/bitcoin.install.sh'
- "home.admin/tor.install.sh" - 'home.admin/tor.install.sh'
- "home.admin/blitz.i2pd.sh" - 'home.admin/blitz.i2pd.sh'
- "home.admin/blitz.web.sh" - 'home.admin/blitz.web.sh'
- "home.admin/blitz.display.sh" - 'home.admin/blitz.display.sh'
- "ci/amd64/**" - 'ci/amd64/**'
jobs: jobs:
amd64-image-build: amd64-image-build:
@ -44,9 +44,9 @@ jobs:
echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
fi fi
if [[ "${{github.event_name}}" == "pull_request" ]]; then 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 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 fi
- name: Display the build name - name: Display the build name
@ -54,9 +54,9 @@ jobs:
- name: Run the build script - name: Run the build script
run: | 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 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 - name: Compute checksum of the raw image
run: | run: |

View file

@ -66,9 +66,9 @@ jobs:
echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
fi fi
if [[ "${{github.event_name}}" == "pull_request" ]]; then 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 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 fi
- name: Display the build name - name: Display the build name
@ -76,9 +76,9 @@ jobs:
- name: Run the build script - name: Run the build script
run: | 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 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 - name: Compute checksum of the raw image
run: | run: |

View file

@ -7,25 +7,25 @@ concurrency:
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: ["dev", "v1.10"] branches: ['dev', 'v1.10']
paths: paths:
- "build_sdcard.sh" - 'build_sdcard.sh'
- "home.admin/bitcoin.install.sh" - 'home.admin/bitcoin.install.sh'
- "home.admin/tor.install.sh" - 'home.admin/tor.install.sh'
- "home.admin/blitz.i2pd.sh" - 'home.admin/blitz.i2pd.sh'
- "home.admin/blitz.web.sh" - 'home.admin/blitz.web.sh'
- "home.admin/blitz.display.sh" - 'home.admin/blitz.display.sh'
- "ci/arm64-rpi/**" - 'ci/arm64-rpi/**'
pull_request: pull_request:
branches: ["dev", "v1.10"] branches: ['dev', 'v1.10']
paths: paths:
- "build_sdcard.sh" - 'build_sdcard.sh'
- "home.admin/bitcoin.install.sh" - 'home.admin/bitcoin.install.sh'
- "home.admin/tor.install.sh" - 'home.admin/tor.install.sh'
- "home.admin/blitz.i2pd.sh" - 'home.admin/blitz.i2pd.sh'
- "home.admin/blitz.web.sh" - 'home.admin/blitz.web.sh'
- "home.admin/blitz.display.sh" - 'home.admin/blitz.display.sh'
- "ci/arm64-rpi/**" - 'ci/arm64-rpi/**'
jobs: jobs:
arm64-rpi-image-build: arm64-rpi-image-build:
@ -44,9 +44,9 @@ jobs:
echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
fi fi
if [[ "${{github.event_name}}" == "pull_request" ]]; then 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 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 fi
- name: Display the build name - name: Display the build name
@ -54,9 +54,9 @@ jobs:
- name: Run the build script - name: Run the build script
run: | 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 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 - name: Compute checksum of the raw image
run: | run: |