diff options
author | Tobias K <6317548+theCalcaholic@users.noreply.github.com> | 2022-10-19 20:05:44 +0300 |
---|---|---|
committer | Tobias K <6317548+theCalcaholic@users.noreply.github.com> | 2022-10-19 20:05:44 +0300 |
commit | 9f8d7f8a3b5957c334481e3d99d8c709c741bb3c (patch) | |
tree | ebb450d917a25d7b1cecf872c266b0ae1ff312ff | |
parent | be3aab915f5073bf79e3caa02cbd3404d89ccbf4 (diff) |
.github/workflows: Drop usage of deprecated ::set-output syntaxfix/nc-restore-keep-nc-data
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
-rw-r--r-- | .github/workflows/build-docker.yml | 2 | ||||
-rw-r--r-- | .github/workflows/build-lxd.yml | 8 | ||||
-rw-r--r-- | .github/workflows/build-sd-images.yml | 6 | ||||
-rw-r--r-- | .github/workflows/vm-tests.yml | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 56562205..a7bdc1e6 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -101,7 +101,7 @@ jobs: } echo "Previous version is '$version'" echo "PREVIOUS_VERSION=$version" >> "$GITHUB_ENV" - echo "::set-output name=previous_version::${version}" + echo "{previous_version}={${version}}" >> $GITHUB_OUTPUT - name: Set up QEMU uses: docker/setup-qemu-action@v1 diff --git a/.github/workflows/build-lxd.yml b/.github/workflows/build-lxd.yml index 223a8ffb..f17303f7 100644 --- a/.github/workflows/build-lxd.yml +++ b/.github/workflows/build-lxd.yml @@ -44,7 +44,7 @@ jobs: . ./build/buildlib.sh ARTIFACT_FILE="NextCloudPi_LXD_${VERSION//\//_}" lxc image export -q ncp/"${version}" "output/${ARTIFACT_FILE}" - echo "::set-output name=artifact_file::${ARTIFACT_FILE}.tar.gz" + echo "{artifact_file}={${ARTIFACT_FILE}.tar.gz}" >> $GITHUB_OUTPUT - name: upload LXD image to artifact store uses: actions/upload-artifact@v3 with: @@ -93,7 +93,7 @@ jobs: echo "Previous version is '$version'" git checkout "$version" echo "VERSION=$version" >> "$GITHUB_ENV" - echo "::set-output name=previous_version::${version}" + echo "{previous_version}={${version}}" >> $GITHUB_OUTPUT - uses: whywaita/setup-lxd@v1 with: lxd_version: latest/stable @@ -106,7 +106,7 @@ jobs: . ./build/buildlib.sh ARTIFACT_FILE="NextCloudPi_LXD_${VERSION//\//_}" lxc image export -q ncp/"${version}" "output/${ARTIFACT_FILE}" - echo "::set-output name=artifact_file::${ARTIFACT_FILE}.tar.gz" + echo "{artifact_file}={${ARTIFACT_FILE}.tar.gz}" >> $GITHUB_OUTPUT - name: upload LXD image to artifact store uses: actions/upload-artifact@v3 with: @@ -185,7 +185,7 @@ jobs: lxc publish -q ncp -f --alias "ncp/updated" mkdir -p output lxc image export -q "ncp/updated" "output/${ARTIFACT_FILE}" - echo "::set-output name=artifact_file::${ARTIFACT_FILE}.tar.gz" + echo "{artifact_file}={${ARTIFACT_FILE}.tar.gz}" >> $GITHUB_OUTPUT - name: upload LXD image to artifact store uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/build-sd-images.yml b/.github/workflows/build-sd-images.yml index 08af6d47..89028b67 100644 --- a/.github/workflows/build-sd-images.yml +++ b/.github/workflows/build-sd-images.yml @@ -68,7 +68,7 @@ jobs: artifacts=("armbian/output/images/Armbian"*.img) mkdir -p output mv "${artifacts[0]}" "output/$IMG" - echo "::set-output name=artifact_file::${IMG}" + echo "{artifact_file}={${IMG}}" >> $GITHUB_OUTPUT echo "ARTIFACT_FILE=${IMG}" >> $GITHUB_ENV - name: "Build Armbian (2nd attempt)" if: ${{ inputs.board_id != 'raspberrypi' && steps.build-armbian.outcome == 'failure' }} @@ -87,7 +87,7 @@ jobs: artifacts=("armbian/output/images/Armbian"*.img) mkdir -p output mv "${artifacts[0]}" "output/$IMG" - echo "::set-output name=artifact_file::${IMG}" + echo "{artifact_file}={${IMG}}" >> $GITHUB_OUTPUT echo "ARTIFACT_FILE=${IMG}" >> $GITHUB_ENV - name: "Upload Armbian logs" if: ${{ inputs.board_id != 'raspberrypi' && failure() }} @@ -116,7 +116,7 @@ jobs: echo "Retrying ($i out of 10)" done - echo "::set-output name=artifact_file::${IMG}" + echo "{artifact_file}={${IMG}}" >> $GITHUB_OUTPUT echo "ARTIFACT_FILE=${IMG}" >> $GITHUB_ENV - name: upload image to artifact store uses: actions/upload-artifact@v3 diff --git a/.github/workflows/vm-tests.yml b/.github/workflows/vm-tests.yml index f2ff3cd3..3a2a399a 100644 --- a/.github/workflows/vm-tests.yml +++ b/.github/workflows/vm-tests.yml @@ -81,7 +81,7 @@ jobs: version="${version%-*-*}" fi echo "Previous version is '$version'" - echo "::set-output name=previous_version::${version}" + echo "{previous_version}={${version}}" >> $GITHUB_OUTPUT - run: | set -x mkdir -p ./.ssh |