From cdaac4928677e5109ca90bd674904dd6a8ff28e6 Mon Sep 17 00:00:00 2001 From: harold Date: Thu, 20 Apr 2023 13:59:56 -0400 Subject: [PATCH] Update to new output style --- .github/workflows/ci.yml | 16 ++++++++-------- .github/workflows/main-build.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ddf7bae..54670267 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,12 +40,12 @@ jobs: id: prSuffix run: | if [ -n "${PR_NUMBER}" ]; then - echo "::set-output name=prSuffix::-pr-${PR_NUMBER}" - echo "::set-output name=prSuffixPackageVersion::-pr.${PR_NUMBER}" + echo "prSuffix=-pr-${PR_NUMBER}" >> $GITHUB_OUTPUT + echo "prSuffixPackageVersion=-pr.${PR_NUMBER}" >> $GITHUB_OUTPUT echo "PR_SUFFIX=-pr-"${PR_NUMBER} >> $GITHUB_ENV else - echo "::set-output name=prSuffix::" - echo "::set-output name=prSuffixPackageVersion::" + echo "prSuffix=" >> $GITHUB_OUTPUT + echo "prSuffixPackageVersion=" >> $GITHUB_OUTPUT echo "PR_SUFFIX=" >> $GITHUB_ENV fi @@ -82,8 +82,8 @@ jobs: # find . -type d -name microapps-app-nextjs-demo-cdk echo 'NEXTJS_DEMO_APP_PACKAGE_VERSION='$(node -p -e "(require('./node_modules/@pwrdrvr/microapps-app-nextjs-demo-cdk/package.json')).version") >> $GITHUB_ENV echo 'RELEASE_APP_PACKAGE_VERSION='$(node -p -e "(require('./node_modules/@pwrdrvr/microapps-app-release-cdk/package.json')).version") >> $GITHUB_ENV - echo "::set-output name=nextjsDemoAppPackageVersion::$(node -p -e "(require('./node_modules/@pwrdrvr/microapps-app-nextjs-demo-cdk/package.json')).version")" - echo "::set-output name=releaseAppPackageVersion::$(node -p -e "(require('./node_modules/@pwrdrvr/microapps-app-release-cdk/package.json')).version")" + echo "nextjsDemoAppPackageVersion=$(node -p -e "(require('./node_modules/@pwrdrvr/microapps-app-nextjs-demo-cdk/package.json')).version")" >> $GITHUB_OUTPUT + echo "releaseAppPackageVersion=$(node -p -e "(require('./node_modules/@pwrdrvr/microapps-app-release-cdk/package.json')).version")" >> $GITHUB_OUTPUT - name: Versions run: | @@ -306,8 +306,8 @@ jobs: - name: Get CDK Exports id: getCDKExports run: | - echo "::set-output name=prefix::"${PREFIX} - echo "::set-output name=edgeDomain::"$(aws cloudformation list-exports --query "Exports[?Name==\`${{ matrix.deployName }}-ghpublic-${NODE_ENV}${{ needs.build.outputs.prSuffix }}-edge-domain-name\`].Value" --no-paginate --output text) + echo "prefix="${PREFIX} >> $GITHUB_OUTPUT + echo "edgeDomain="$(aws cloudformation list-exports --query "Exports[?Name==\`${{ matrix.deployName }}-ghpublic-${NODE_ENV}${{ needs.build.outputs.prSuffix }}-edge-domain-name\`].Value" --no-paginate --output text) >> $GITHUB_OUTPUT echo "EDGE_DOMAIN="$(aws cloudformation list-exports --query "Exports[?Name==\`${{ matrix.deployName }}-ghpublic-${NODE_ENV}${{ needs.build.outputs.prSuffix }}-edge-domain-name\`].Value" --no-paginate --output text) >> $GITHUB_ENV echo "EDGE_TO_ORIGIN_ROLE_ARN="$(aws cloudformation list-exports --query "Exports[?Name==\`${{ matrix.deployName }}-ghpublic-${NODE_ENV}${{ needs.build.outputs.prSuffix }}-edge-role-role-arn\`].Value" --no-paginate --output text) >> $GITHUB_ENV echo "DEPLOYER_LAMBDA_NAME="$(aws cloudformation list-exports --query "Exports[?Name==\`${{ matrix.deployName }}-ghpublic-${NODE_ENV}${{ needs.build.outputs.prSuffix }}-deployer-func-name\`].Value" --no-paginate --output text) >> $GITHUB_ENV diff --git a/.github/workflows/main-build.yml b/.github/workflows/main-build.yml index 4d04bbee..d93692d9 100644 --- a/.github/workflows/main-build.yml +++ b/.github/workflows/main-build.yml @@ -65,7 +65,7 @@ jobs: name: Find mutations run: |- git add . - git diff --staged --patch --exit-code > .repo.patch || echo "::set-output name=self_mutation_happened::true" + git diff --staged --patch --exit-code > .repo.patch || echo "self_mutation_happened=true" >> $GITHUB_OUTPUT - if: steps.self_mutation.outputs.self_mutation_happened name: Upload patch uses: actions/upload-artifact@v3 @@ -129,7 +129,7 @@ jobs: node-version: 16 - name: Check for new commits id: git_remote - run: echo ::set-output name=latest_commit::"$(git ls-remote origin -h ${{ github.ref }} | cut -f1)" + run: echo latest_commit="$(git ls-remote origin -h ${{ github.ref }} | cut -f1)" >> $GITHUB_OUTPUT - name: Cache Node Modules id: cache-node-modules uses: actions/cache@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6cfff8d8..8a277735 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,7 +60,7 @@ jobs: run: npm version v$(cat packages/microapps-cdk/dist/version.txt) --no-git-tag-version --workspaces - name: Check for new commits id: git_remote - run: echo ::set-output name=latest_commit::"$(git ls-remote origin -h ${{ github.ref }} | cut -f1)" + run: echo latest_commit="$(git ls-remote origin -h ${{ github.ref }} | cut -f1)" >> $GITHUB_OUTPUT - name: Upload version.txt if: ${{ steps.git_remote.outputs.latest_commit == github.sha }} uses: actions/upload-artifact@v3 @@ -115,7 +115,7 @@ jobs: node-version: 16 - name: Check for new commits id: git_remote - run: echo ::set-output name=latest_commit::"$(git ls-remote origin -h ${{ github.ref }} | cut -f1)" + run: echo latest_commit="$(git ls-remote origin -h ${{ github.ref }} | cut -f1)" >> $GITHUB_OUTPUT - name: Download version.txt uses: actions/download-artifact@v3 with: