Skip to content

Commit

Permalink
build: don't use set-output anywhere anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Aug 1, 2023
1 parent 48670fc commit 8c42e88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/v3-dev-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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
Expand Down

0 comments on commit 8c42e88

Please sign in to comment.