From 0136e5994561c9e00862ae5e03a3137767a9ed18 Mon Sep 17 00:00:00 2001 From: Andrea Amorosi Date: Fri, 31 Mar 2023 10:58:10 +0200 Subject: [PATCH] chore(ci): convert deprecated `set-output` command (#1391) * chore: converted deprecated set-output * chore: update sha for pkg-size-action --- .github/workflows/measure-packages-size.yml | 2 +- .github/workflows/reusable_export_pr_details.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/measure-packages-size.yml b/.github/workflows/measure-packages-size.yml index e8b15b3480..a0795fc3f4 100644 --- a/.github/workflows/measure-packages-size.yml +++ b/.github/workflows/measure-packages-size.yml @@ -31,7 +31,7 @@ jobs: with: ref: ${{ steps.extract_PR_details.outputs.headSHA }} - name: Packages size report - uses: flochaz/pkg-size-action@e41584e9396375027c8a3c68909e3eca55719e47 # v.2.0.0 + uses: flochaz/pkg-size-action@1f56793682d897eb0860d98637fa4ea8fe7d37b8 # v.2.0.1 with: build-command: mkdir dist && npm run package -w packages/logger -w packages/tracer -w packages/metrics -w packages/commons -w packages/parameters && npm run package-bundle -w packages/logger -w packages/tracer -w packages/metrics -w packages/commons -w packages/parameters && bash -c "mv ./packages/*/dist/* dist/" && ls dist dist-directory: /dist diff --git a/.github/workflows/reusable_export_pr_details.yml b/.github/workflows/reusable_export_pr_details.yml index af4a7e6af6..760ea8b8f6 100644 --- a/.github/workflows/reusable_export_pr_details.yml +++ b/.github/workflows/reusable_export_pr_details.yml @@ -68,19 +68,19 @@ jobs: # otherwise the parent caller won't see them regardless on how outputs are set. - name: "Export Pull Request Number" id: prNumber - run: echo ::set-output name=prNumber::$(jq -c '.number' ${FILENAME}) + run: echo "prNumber=$(jq -c '.number' ${FILENAME})" >> $GITHUB_OUTPUT - name: "Export Pull Request Title" id: prTitle - run: echo ::set-output name=prTitle::$(jq -c '.pull_request.title' ${FILENAME}) + run: echo "prTitle=$(jq -c '.pull_request.title' ${FILENAME})" >> $GITHUB_OUTPUT - name: "Export Pull Request Body" id: prBody - run: echo ::set-output name=prBody::$(jq -c '.pull_request.body' ${FILENAME}) + run: echo "prBody=$(jq -c '.pull_request.body' ${FILENAME})" >> $GITHUB_OUTPUT - name: "Export Pull Request Author" id: prAuthor - run: echo ::set-output name=prAuthor::$(jq -c '.pull_request.user.login' ${FILENAME}) + run: echo "prAuthor=$(jq -c '.pull_request.user.login' ${FILENAME})" >> $GITHUB_OUTPUT - name: "Export Pull Request Action" id: prAction - run: echo ::set-output name=prAction::$(jq -c '.action' ${FILENAME}) + run: echo "prAction=$(jq -c '.action' ${FILENAME})" >> $GITHUB_OUTPUT - name: "Export Pull Request Merged status" id: prIsMerged - run: echo ::set-output name=prIsMerged::$(jq -c '.pull_request.merged' ${FILENAME}) \ No newline at end of file + run: echo "prIsMerged=$(jq -c '.pull_request.merged' ${FILENAME})" >> $GITHUB_OUTPUT \ No newline at end of file