From 268dd94895cee5cf70b9398208a5f0ba2f7b32a8 Mon Sep 17 00:00:00 2001 From: Scott Kingsley Clark Date: Mon, 4 Sep 2023 21:18:55 -0500 Subject: [PATCH] Update action checkout/cache usage and versions --- .github/workflows/auto-build.yml | 2 +- .github/workflows/generate-translations.yml | 2 +- .github/workflows/php-compatibility.yml | 8 ++++---- .github/workflows/php-phpcs.yml | 8 ++++---- .github/workflows/tests-js.yml | 2 +- .github/workflows/tests-php.yml | 13 ++++++------- .github/workflows/wordpress-plugin-deploy.yml | 2 +- 7 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index 909e8fc7ad..20ff997b92 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -11,7 +11,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Node.js uses: actions/setup-node@v1 with: diff --git a/.github/workflows/generate-translations.yml b/.github/workflows/generate-translations.yml index dd7296328a..f5ebded9a2 100644 --- a/.github/workflows/generate-translations.yml +++ b/.github/workflows/generate-translations.yml @@ -4,7 +4,7 @@ jobs: generate-translations: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: WordPress POT/PO/MO Generator uses: strangerstudios/action-wp-pot-po-mo-generator@main with: diff --git a/.github/workflows/php-compatibility.yml b/.github/workflows/php-compatibility.yml index 72bea5a007..db277546e2 100644 --- a/.github/workflows/php-compatibility.yml +++ b/.github/workflows/php-compatibility.yml @@ -15,21 +15,21 @@ jobs: phpcompatibility: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} - name: Get Composer Cache Directory id: composer-cache run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v1 + echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: | ${{ runner.os }}-composer- - name: Run PHPCS inspection - uses: rtCamp/action-phpcs-code-review@v2 + uses: rtCamp/action-phpcs-code-review@v3 env: GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }} PHPCS_STANDARD_FILE_NAME: .phpcs.compat.xml diff --git a/.github/workflows/php-phpcs.yml b/.github/workflows/php-phpcs.yml index de23dea0f8..070976b560 100644 --- a/.github/workflows/php-phpcs.yml +++ b/.github/workflows/php-phpcs.yml @@ -15,21 +15,21 @@ jobs: phpcs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} - name: Get Composer Cache Directory id: composer-cache run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v1 + echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: | ${{ runner.os }}-composer- - name: Run PHPCS inspection - uses: rtCamp/action-phpcs-code-review@v2 + uses: rtCamp/action-phpcs-code-review@v3 env: GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }} SKIP_FOLDERS: ".github,.wordpress-org,tests,tribe-common,vendor" diff --git a/.github/workflows/tests-js.yml b/.github/workflows/tests-js.yml index 0b7513a926..d5b5334730 100644 --- a/.github/workflows/tests-js.yml +++ b/.github/workflows/tests-js.yml @@ -15,7 +15,7 @@ jobs: suite: [ 'jest' ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: diff --git a/.github/workflows/tests-php.yml b/.github/workflows/tests-php.yml index f03d64e3a1..bd83429501 100644 --- a/.github/workflows/tests-php.yml +++ b/.github/workflows/tests-php.yml @@ -29,7 +29,7 @@ jobs: # Checkout the repo # ------------------------------------------------------------------------------ - name: Checkout the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 1000 submodules: recursive @@ -44,7 +44,7 @@ jobs: # Checkout slic # ------------------------------------------------------------------------------ - name: Checkout slic - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: stellarwp/slic ref: main @@ -54,13 +54,12 @@ jobs: # Prepare our composer cache directory # ------------------------------------------------------------------------------ - name: Get Composer Cache Directory - id: get-composer-cache-dir - run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v2 id: composer-cache + run: | + echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - uses: actions/cache@v3 with: - path: ${{ steps.get-composer-cache-dir.outputs.dir }} + path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: | ${{ runner.os }}-composer- diff --git a/.github/workflows/wordpress-plugin-deploy.yml b/.github/workflows/wordpress-plugin-deploy.yml index 00440b58e1..39fad655a0 100644 --- a/.github/workflows/wordpress-plugin-deploy.yml +++ b/.github/workflows/wordpress-plugin-deploy.yml @@ -7,7 +7,7 @@ jobs: name: New tag runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v3 - name: WordPress Plugin Deploy uses: 10up/action-wordpress-plugin-deploy@master env: