From b339cf24293ef312414eb1b6ad9d795e3de8b27a Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 6 Feb 2023 21:47:04 +0100 Subject: [PATCH] Fix usage of deprecated GitHub actions practices --- .github/actions/ci-setup/action.yml | 2 +- .github/workflows/ci-mutation-tests.yml | 6 +++--- .github/workflows/publish-swagger-spec.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/ci-setup/action.yml b/.github/actions/ci-setup/action.yml index 78cbdf1c..19df378a 100644 --- a/.github/actions/ci-setup/action.yml +++ b/.github/actions/ci-setup/action.yml @@ -28,7 +28,7 @@ runs: extensions: ${{ inputs.php-extensions }} key: ${{ inputs.extensions-cache-key }} - name: Cache extensions - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.extcache.outputs.dir }} key: ${{ steps.extcache.outputs.key }} diff --git a/.github/workflows/ci-mutation-tests.yml b/.github/workflows/ci-mutation-tests.yml index 5d8b1660..237b37cb 100644 --- a/.github/workflows/ci-mutation-tests.yml +++ b/.github/workflows/ci-mutation-tests.yml @@ -27,14 +27,14 @@ jobs: path: build - name: Resolve infection args id: infection_args - run: echo "::set-output name=args::--logger-github=false" + run: echo "args=--logger-github=false" >> $GITHUB_OUTPUT # TODO Try to filter mutation tests to improve execution times. Investigate why --git-diff-lines --git-diff-base=develop does not work # run: | # BRANCH="${GITHUB_REF#refs/heads/}" | # if [[ $BRANCH == 'main' || $BRANCH == 'develop' ]]; then -# echo "::set-output name=args::--logger-github=false" +# echo "args=--logger-github=false" >> $GITHUB_OUTPUT # else -# echo "::set-output name=args::--logger-github=false --git-diff-lines --git-diff-base=develop" +# echo "args=--logger-github=false --git-diff-lines --git-diff-base=develop" >> $GITHUB_OUTPUT # fi; shell: bash - if: ${{ inputs.test-group == 'unit' }} diff --git a/.github/workflows/publish-swagger-spec.yml b/.github/workflows/publish-swagger-spec.yml index dd5bfbde..df2fd9c9 100644 --- a/.github/workflows/publish-swagger-spec.yml +++ b/.github/workflows/publish-swagger-spec.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v3 - name: Determine version id: determine_version - run: echo "::set-output name=version::${GITHUB_REF#refs/tags/}" + run: echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT shell: bash - uses: './.github/actions/ci-setup' with: