From c3ec875d59a273df7152b641d0afa1da7957664e Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Mon, 11 Dec 2023 06:57:13 -0800 Subject: [PATCH] chore: remove GitHub Actions deprecated command (#2790) * Resolves GitHub Actions usage of deprecated command for setting output * Updates action versions to the latest released versions --------- Co-authored-by: Trenton Holmes --- .github/workflows/partial-backend.yml | 4 ++-- .github/workflows/partial-builder.yml | 10 +++++----- .github/workflows/partial-frontend.yml | 16 ++++++++-------- .../partial-trivy-container-scanning.yml | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/partial-backend.yml b/.github/workflows/partial-backend.yml index b4f2697bae68..80afa791eb6b 100644 --- a/.github/workflows/partial-backend.yml +++ b/.github/workflows/partial-backend.yml @@ -36,7 +36,7 @@ jobs: # Steps steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up python uses: actions/setup-python@v4 @@ -60,7 +60,7 @@ jobs: id: cache-validate if: steps.cached-poetry-dependencies.outputs.cache-hit == 'true' run: | - echo "import black;print('venv good?')" > test.py && poetry run python test.py && echo ::set-output name=cache-hit-success::true + echo "import black;print('venv good?')" > test.py && poetry run python test.py && echo "cache-hit-success=true" >> $GITHUB_OUTPUT rm test.py continue-on-error: true diff --git a/.github/workflows/partial-builder.yml b/.github/workflows/partial-builder.yml index 848d19dd7e86..2af0f128f714 100644 --- a/.github/workflows/partial-builder.yml +++ b/.github/workflows/partial-builder.yml @@ -20,26 +20,26 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to the Container registry (ghcr.io) - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Log in to the Container registry (dockerhub) - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Override __init__.py run: | diff --git a/.github/workflows/partial-frontend.yml b/.github/workflows/partial-frontend.yml index 5a52344b453e..55859ac11a16 100644 --- a/.github/workflows/partial-frontend.yml +++ b/.github/workflows/partial-frontend.yml @@ -9,20 +9,20 @@ jobs: steps: - name: Checkout 🛎 - uses: actions/checkout@master + uses: actions/checkout@v4 - name: Setup node env 🏗 - uses: actions/setup-node@v3.7.0 + uses: actions/setup-node@v4.0.0 with: node-version: 16 check-latest: true - name: Get yarn cache directory path 🛠 id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Cache node_modules 📦 - uses: actions/cache@v3.3.1 + uses: actions/cache@v3.3.2 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} @@ -47,20 +47,20 @@ jobs: steps: - name: Checkout 🛎 - uses: actions/checkout@master + uses: actions/checkout@v4 - name: Setup node env 🏗 - uses: actions/setup-node@v3.7.0 + uses: actions/setup-node@v4.0.0 with: node-version: 16 check-latest: true - name: Get yarn cache directory path 🛠 id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Cache node_modules 📦 - uses: actions/cache@v3.3.1 + uses: actions/cache@v3.3.2 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} diff --git a/.github/workflows/partial-trivy-container-scanning.yml b/.github/workflows/partial-trivy-container-scanning.yml index 1305bdfca84c..74658bfcae08 100644 --- a/.github/workflows/partial-trivy-container-scanning.yml +++ b/.github/workflows/partial-trivy-container-scanning.yml @@ -11,7 +11,7 @@ jobs: fail-fast: true steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build Dockerfile run: |