From 59741bbffc823560f0a27423072f5815beb361c1 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Mon, 14 Nov 2022 12:37:06 +0300 Subject: [PATCH 1/2] .github: update deprecated workflows --- .github/workflows/build.yml | 6 +++--- Makefile | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 880ef83f4..15701cf46 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,7 +70,7 @@ jobs: run: mv ./bin/neo-go* ./bin/neo-go-${{ matrix.os.bin-name }}-${{ matrix.arch }}${{ (matrix.os.bin-name == 'windows' && '.exe') || '' }} - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: neo-go-${{ matrix.os.bin-name }}-${{ matrix.arch }} path: ./bin/neo-go* @@ -102,12 +102,12 @@ jobs: - name: Set vars id: setvars - run: make gh-docker-vars + run: make gh-docker-vars >> $GITHUB_OUTPUT - name: Set latest tag id: setlatest if: ${{ (github.event_name == 'release' && github.event.release.target_commitish == 'master') || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true' && github.event.inputs.use_latest_tag == 'true') }} - run: echo "::set-output name=latest::,${{ steps.setvars.outputs.repo }}:latest" + run: echo "latest=,${{ steps.setvars.outputs.repo }}:latest" >> $GITHUB_OUTPUT - name: Build and push uses: docker/build-push-action@v3 diff --git a/Makefile b/Makefile index 34c001d54..b663f4580 100644 --- a/Makefile +++ b/Makefile @@ -96,10 +96,10 @@ version: @echo $(VERSION) gh-docker-vars: - @echo "::set-output name=file::$(D_FILE)" - @echo "::set-output name=version::$(VERSION)" - @echo "::set-output name=repo::$(IMAGE_REPO)" - @echo "::set-output name=suffix::$(IMAGE_SUFFIX)" + @echo "file=$(D_FILE)" + @echo "version=$(VERSION)" + @echo "repo=$(IMAGE_REPO)" + @echo "suffix=$(IMAGE_SUFFIX)" test: @go test ./... -cover From eaa0d42b9c120ed99ad2433e86dd277875e8b54b Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Mon, 14 Nov 2022 12:37:41 +0300 Subject: [PATCH 2/2] .github: fix condition for adding latest tag to buider job --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15701cf46..90e46f211 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -106,7 +106,7 @@ jobs: - name: Set latest tag id: setlatest - if: ${{ (github.event_name == 'release' && github.event.release.target_commitish == 'master') || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true' && github.event.inputs.use_latest_tag == 'true') }} + if: ${{ (github.event_name == 'release' && github.event.release.target_commitish == 'master') || (github.event_name == 'workflow_dispatch' && github.event.inputs.use_latest_tag == 'true') }} run: echo "latest=,${{ steps.setvars.outputs.repo }}:latest" >> $GITHUB_OUTPUT - name: Build and push