From ce14395eeaee5fe6bd86767b75f167b293a43658 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Fri, 23 Aug 2024 10:19:02 +0800 Subject: [PATCH] Update GitHub Actions --- .github/workflows/code-quality.yaml | 4 +-- .github/workflows/manifest.yml | 40 ++--------------------------- 2 files changed, 4 insertions(+), 40 deletions(-) diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index 13dbfc726e..552ec80d2f 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -20,7 +20,7 @@ jobs: access_token: ${{ github.token }} - name: Checkout changes - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -45,7 +45,7 @@ jobs: name: JavaScript steps: - name: Checkout changes - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/manifest.yml b/.github/workflows/manifest.yml index 72597a5329..1ad51ca43e 100644 --- a/.github/workflows/manifest.yml +++ b/.github/workflows/manifest.yml @@ -15,28 +15,8 @@ jobs: extensions: curl, fileinfo, gd, mbstring, openssl, pdo, pdo_sqlite, sqlite3, xml, zip key: winter-cms-cache-develop steps: - - name: Cancel previous incomplete runs - uses: styfle/cancel-workflow-action@0.8.0 - with: - access_token: ${{ github.token }} - - name: Checkout changes - uses: actions/checkout@v3 - - - name: Setup extension cache - id: extcache - uses: shivammathur/cache-extensions@v1 - with: - php-version: ${{ env.phpVersion }} - extensions: ${{ env.extensions }} - key: ${{ env.key }} - - - name: Cache extensions - uses: actions/cache@v3 - with: - path: ${{ steps.extcache.outputs.dir }} - key: ${{ steps.extcache.outputs.key }} - restore-keys: ${{ steps.extcache.outputs.key }} + uses: actions/checkout@v4 - name: Install PHP uses: shivammathur/setup-php@v2 @@ -44,17 +24,6 @@ jobs: php-version: ${{ env.phpVersion }} extensions: ${{ env.extensions }} - - name: Setup dependency cache - id: composer-cache - run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: ${{ runner.os }}-composer- - - name: Install Composer dependencies run: composer install --no-interaction --no-progress --no-scripts @@ -74,13 +43,8 @@ jobs: runs-on: ubuntu-latest needs: updateManifest steps: - - name: Cancel previous incomplete runs - uses: styfle/cancel-workflow-action@0.8.0 - with: - access_token: ${{ github.token }} - - name: Checkout changes - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: wintercms/meta ref: master