From 3f9dbd99cb9130d5bf85085b58a482b33cff566a Mon Sep 17 00:00:00 2001 From: tyranron Date: Fri, 4 Nov 2022 18:09:19 +0100 Subject: [PATCH] Remove usage of deprecated `::set-output` GitHub Actions feature --- .github/workflows/ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f59d0e..6014bca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -244,13 +244,13 @@ jobs: steps: # Skip if this is fork and no credentials are provided. - id: skip - run: echo ::set-output name=no::${{ !( + run: echo "no=${{ !( github.repository_owner != 'instrumentisto' && ((matrix.registry == 'quay.io' && secrets.QUAYIO_ROBOT_USER == '') || (matrix.registry == 'docker.io' && secrets.DOCKERHUB_BOT_USER == '')) - ) }} + ) }}" >> $GITHUB_OUTPUT - uses: actions/checkout@v3 if: ${{ steps.skip.outputs.no == 'true' }} @@ -370,12 +370,12 @@ jobs: - name: Parse CHANGELOG link id: changelog - run: echo ::set-output - name=link::${{ github.server_url }}/${{ github.repository }}/blob/v${{ steps.semver.outputs.group1 }}/CHANGELOG.md#$(sed -n '/^## \[${{ steps.semver.outputs.group1 }}\]/{s/^## \[\(.*\)\][^0-9]*\([0-9].*\)/\1--\2/;s/[^0-9a-z-]*//g;p;}' CHANGELOG.md) + run: echo "link=${{ github.server_url }}/${{ github.repository }}/blob/v${{ steps.semver.outputs.group1 }}/CHANGELOG.md#$(sed -n '/^## \[${{ steps.semver.outputs.group1 }}\]/{s/^## \[\(.*\)\][^0-9]*\([0-9].*\)/\1--\2/;s/[^0-9a-z-]*//g;p;}' CHANGELOG.md)" + >> $GITHUB_OUTPUT - name: Parse milestone link id: milestone - run: echo ::set-output - name=link::${{ github.server_url }}/${{ github.repository }}/milestone/$(sed -n '/^## \[${{ steps.semver.outputs.group1 }}\]/,/Milestone/{s/.*milestone.\([0-9]*\).*/\1/p;}' CHANGELOG.md) + run: echo "link=${{ github.server_url }}/${{ github.repository }}/milestone/$(sed -n '/^## \[${{ steps.semver.outputs.group1 }}\]/,/Milestone/{s/.*milestone.\([0-9]*\).*/\1/p;}' CHANGELOG.md)" + >> $GITHUB_OUTPUT - name: Create GitHub release uses: softprops/action-gh-release@v1 @@ -397,10 +397,10 @@ jobs: runs-on: ubuntu-latest steps: - id: skip - run: echo ::set-output name=no::${{ + run: echo "no=${{ startsWith(github.ref, format('refs/tags/helm/{0}/', matrix.chart)) - }} + }}" >> $GITHUB_OUTPUT - uses: actions/checkout@v3 if: ${{ steps.skip.outputs.no == 'true' }} @@ -438,8 +438,8 @@ jobs: - name: Parse CHANGELOG link id: changelog - run: echo ::set-output - name=link::${{ github.server_url }}/${{ github.repository }}/blob/helm%2F${{ matrix.chart }}%2F${{ steps.semver.outputs.group1 }}/helm/${{ matrix.chart }}/CHANGELOG.md#$(sed -n '/^## \[${{ steps.semver.outputs.group1 }}\]/{s/^## \[\(.*\)\][^0-9]*\([0-9].*\)/\1--\2/;s/[^0-9a-z-]*//g;p;}' helm/${{ matrix.chart }}/CHANGELOG.md) + run: echo "link=${{ github.server_url }}/${{ github.repository }}/blob/helm%2F${{ matrix.chart }}%2F${{ steps.semver.outputs.group1 }}/helm/${{ matrix.chart }}/CHANGELOG.md#$(sed -n '/^## \[${{ steps.semver.outputs.group1 }}\]/{s/^## \[\(.*\)\][^0-9]*\([0-9].*\)/\1--\2/;s/[^0-9a-z-]*//g;p;}' helm/${{ matrix.chart }}/CHANGELOG.md)" + >> $GITHUB_OUTPUT - name: Create GitHub release uses: softprops/action-gh-release@v1