From a284c16df9117b1e7c7b0acdb9bc04cebb31666c Mon Sep 17 00:00:00 2001 From: nmanu1 Date: Fri, 18 Nov 2022 15:11:11 -0500 Subject: [PATCH] Update workflows --- .github/workflows/acceptance.yml | 12 ++++++------ .github/workflows/acceptance_search_bar.yml | 6 +++--- .github/workflows/build.yml | 8 ++++---- .github/workflows/build_i18n.yml | 14 +++++++------- .github/workflows/deploy.yml | 8 ++++---- .github/workflows/deploy_hold.yml | 10 +++++----- .github/workflows/extract_versions.yml | 6 +++--- .github/workflows/format_branch_name.yml | 2 +- .github/workflows/miscellaneous_tests.yml | 6 +++--- .github/workflows/should_deploy_major_version.yml | 6 +++--- .github/workflows/unit_test.yml | 8 ++++---- 11 files changed, 43 insertions(+), 43 deletions(-) diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 5e8290bb7..6e7a4dc04 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -13,15 +13,15 @@ jobs: name: Headless Acceptance runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js 16 - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 cache: 'npm' - run: npm ci - name: Download build-output artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: build-output path: dist/ @@ -31,15 +31,15 @@ jobs: name: Browserstack Acceptance runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js 16 - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 cache: 'npm' - run: npm ci - name: Download build-output artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: build-output path: dist/ diff --git a/.github/workflows/acceptance_search_bar.yml b/.github/workflows/acceptance_search_bar.yml index 677c6ee78..34be78983 100644 --- a/.github/workflows/acceptance_search_bar.yml +++ b/.github/workflows/acceptance_search_bar.yml @@ -13,15 +13,15 @@ jobs: name: Headless Acceptance runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js 16 - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 cache: 'npm' - run: npm ci - name: Download build-output artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: build-output path: dist/ diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 05653b2ea..be8c6d674 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,18 +13,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Use Node.js 16 - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 cache: 'npm' - run: npm ci - run: npm run ${{ inputs.build_script }} - name: Create build-output artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: build-output - path: dist/ \ No newline at end of file + path: dist/ diff --git a/.github/workflows/build_i18n.yml b/.github/workflows/build_i18n.yml index 688ae9bd1..828af0c97 100644 --- a/.github/workflows/build_i18n.yml +++ b/.github/workflows/build_i18n.yml @@ -14,16 +14,16 @@ jobs: outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: 16 cache: 'npm' - id: set-matrix run: | - echo ::set-output name=matrix::$(node -e 'console.log(require("./conf/i18n/constants").ALL_LANGUAGES)') + echo matrix=$(node -e 'console.log(require("./conf/i18n/constants").ALL_LANGUAGES)') >> $GITHUB_OUTPUT build: needs: create_language_matrix @@ -32,11 +32,11 @@ jobs: matrix: language: ${{ fromJson(needs.create_language_matrix.outputs.matrix) }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Use Node.js 16 - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 cache: 'npm' @@ -47,7 +47,7 @@ jobs: npm run size fi - name: Create build-output artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: build-output - path: dist/ \ No newline at end of file + path: dist/ diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 39b6bb2ba..b9db3f7ca 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,14 +26,14 @@ jobs: deploy-aws: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Download build-output artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: build-output path: dist/ - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v1-node16 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -50,7 +50,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Download build-output artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: build-output path: dist/ diff --git a/.github/workflows/deploy_hold.yml b/.github/workflows/deploy_hold.yml index 6c0bc7a48..ae637ec02 100644 --- a/.github/workflows/deploy_hold.yml +++ b/.github/workflows/deploy_hold.yml @@ -27,14 +27,14 @@ jobs: runs-on: ubuntu-latest environment: production # sets in github repo with reviewer requirement protection rule steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Download build-output artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: build-output path: dist/ - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v1-node16 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -52,7 +52,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Download build-output artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: build-output path: dist/ @@ -68,4 +68,4 @@ jobs: parent: false destination: assets-eu.sitescdn.net/${{ inputs.bucket }}/${{ inputs.directory }} headers: |- - cache-control: ${{ inputs.cache-control }} \ No newline at end of file + cache-control: ${{ inputs.cache-control }} diff --git a/.github/workflows/extract_versions.yml b/.github/workflows/extract_versions.yml index 216d4b032..52a6d5c9d 100644 --- a/.github/workflows/extract_versions.yml +++ b/.github/workflows/extract_versions.yml @@ -28,10 +28,10 @@ jobs: run: | MAJOR_VERSION="$(echo "${GITHUB_REF_NAME##${{ inputs.ignore_prefix }}}" | cut -d '.' -f 1)" echo "Major version: $MAJOR_VERSION" - echo ::set-output name=major_version::${MAJOR_VERSION} + echo major_version=${MAJOR_VERSION} >> $GITHUB_OUTPUT MINOR_VERSION="$(echo "${GITHUB_REF_NAME##${{ inputs.ignore_prefix }}}" | cut -d '.' -f 1,2)" echo "Minor version: $MINOR_VERSION" - echo ::set-output name=minor_version::${MINOR_VERSION} + echo minor_version=${MINOR_VERSION} >> $GITHUB_OUTPUT FULL_VERSION="${GITHUB_REF_NAME##${{ inputs.ignore_prefix }}}" echo "Full version: $FULL_VERSION" - echo ::set-output name=full_version::${FULL_VERSION} \ No newline at end of file + echo full_version=${FULL_VERSION} >> $GITHUB_OUTPUT diff --git a/.github/workflows/format_branch_name.yml b/.github/workflows/format_branch_name.yml index b45991286..4e463ed32 100644 --- a/.github/workflows/format_branch_name.yml +++ b/.github/workflows/format_branch_name.yml @@ -18,4 +18,4 @@ jobs: run: | FORMATTED_BRANCH="$(echo ${GITHUB_REF_NAME} | sed "s/\//-/g")" echo $FORMATTED_BRANCH - echo ::set-output name=formatted_branch::${FORMATTED_BRANCH} \ No newline at end of file + echo formatted_branch=${FORMATTED_BRANCH} >> $GITHUB_OUTPUT diff --git a/.github/workflows/miscellaneous_tests.yml b/.github/workflows/miscellaneous_tests.yml index 0e803f9eb..445951b88 100644 --- a/.github/workflows/miscellaneous_tests.yml +++ b/.github/workflows/miscellaneous_tests.yml @@ -8,12 +8,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js 16 - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 cache: 'npm' - run: npm ci - run: sudo apt-get install -qq gettext - - run: ./.github/run_translation_verification.sh \ No newline at end of file + - run: ./.github/run_translation_verification.sh diff --git a/.github/workflows/should_deploy_major_version.yml b/.github/workflows/should_deploy_major_version.yml index b2b7adfd8..f2fe4ef6b 100644 --- a/.github/workflows/should_deploy_major_version.yml +++ b/.github/workflows/should_deploy_major_version.yml @@ -17,7 +17,7 @@ jobs: outputs: should_deploy_major_version: ${{ steps.vars.outputs.should_deploy_major_version }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: allow for major version deployment if the next minor version from current tag does not exist @@ -30,7 +30,7 @@ jobs: if [ -z "$TAGS_FOR_NEXT_MINOR" ] then echo 'Major version should be deployed.' - echo ::set-output name=should_deploy_major_version::true + echo should_deploy_major_version=true >> $GITHUB_OUTPUT else echo 'Major version should not be deployed.' - fi \ No newline at end of file + fi diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index 2b903314d..c89c81e47 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -8,16 +8,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js 16 - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 cache: 'npm' - run: npm ci - name: Download build-output artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: build-output path: dist/ - - run: npm run test \ No newline at end of file + - run: npm run test