From 8c42e884f37fb4ebabe4b13fd2320c0d3bbd1bb8 Mon Sep 17 00:00:00 2001 From: Joel Lappalainen Date: Tue, 1 Aug 2023 10:57:23 +0300 Subject: [PATCH] build: don't use set-output anywhere anymore --- .github/workflows/dev-pipeline.yml | 4 ++-- .github/workflows/v3-dev-pipeline.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dev-pipeline.yml b/.github/workflows/dev-pipeline.yml index f64163ba91..5567c0066a 100644 --- a/.github/workflows/dev-pipeline.yml +++ b/.github/workflows/dev-pipeline.yml @@ -116,11 +116,11 @@ jobs: - name: disregard changed yarn.lock run: git update-index --assume-unchanged yarn.lock - name: Publish shared components to npm - run: echo ::set-output name=publish-logs::$(yarn digitransit-npm-autopublish) + run: echo "publish-logs=$(yarn digitransit-npm-autopublish)" >> $GITHUB_OUTPUT shell: bash id: publish - name: Parse publish logs - run: echo ::set-output name=published-packages::$(echo "${{ steps.publish.outputs.publish-logs }}" | grep -o -P '(Successfully published:).*') + run: echo "published-packages=$(echo "${{ steps.publish.outputs.publish-logs }}" | grep -o -P '(Successfully published:).*')" >> $GITHUB_OUTPUT shell: bash id: log-parse - name: Send published packages to slack diff --git a/.github/workflows/v3-dev-pipeline.yml b/.github/workflows/v3-dev-pipeline.yml index 3e1a68c861..bb3f5d18ad 100644 --- a/.github/workflows/v3-dev-pipeline.yml +++ b/.github/workflows/v3-dev-pipeline.yml @@ -80,7 +80,7 @@ jobs: - name: Create buildInfo.js file content id: build-info - run: echo "::set-output name=content::export const COMMIT_ID = \"${GITHUB_SHA}\";\nexport const BUILD_TIME = \"$(date -Iminutes -u)\";" + run: echo "content=export const COMMIT_ID = \"${GITHUB_SHA}\";\nexport const BUILD_TIME = \"$(date -Iminutes -u)\";}" >> $GITHUB_OUTPUT - name: Create buildInfo.js file uses: finnp/create-file-action@2.0.0 @@ -107,7 +107,7 @@ jobs: - name: Create Docker image tag id: docker-tags run: | - echo "::set-output name=permanent-tag::v3-$(date +"%Y-%m-%dT%H.%M.%S")-${GITHUB_SHA:0:7}" + echo "permanent-tag=v3-$(date +"%Y-%m-%dT%H.%M.%S")-${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT - name: build and push Docker image uses: docker/build-push-action@v2