From dc47740bc94fdc0a69f86b1184766cc0cf25b55a Mon Sep 17 00:00:00 2001 From: R Ryan Dial Date: Thu, 2 Jan 2025 21:48:01 -0500 Subject: [PATCH] update github actions --- .github/workflows/code-quality.yaml | 6 ++++-- .github/workflows/dev-release.yaml | 6 +++--- .github/workflows/publish-to-wp.yaml | 4 ++-- .github/workflows/release.yaml | 4 ++-- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index 2b08c1e..2d18f3e 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -13,11 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: shivammathur/setup-php@v2 + + - name: Setup PHP with composer + uses: shivammathur/setup-php@v2 with: php-version: '7.4' extensions: zip - tools: composer:2.5.5 + tools: composer - name: Install dependencies run: cd src && composer install diff --git a/.github/workflows/dev-release.yaml b/.github/workflows/dev-release.yaml index 2e430f0..f3a28a9 100644 --- a/.github/workflows/dev-release.yaml +++ b/.github/workflows/dev-release.yaml @@ -36,7 +36,7 @@ jobs: with: php-version: '7.4' extensions: zip - tools: composer:2.5.5 + tools: composer # Create a packaged up zip file - name: Set Version Number & Build Zip @@ -45,14 +45,14 @@ jobs: # Configure AWS credentials - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@v4 with: role-session-name: GitHub_to_AWS_via_FederatedOIDC role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT }}:role/GitHubActionIAMRole aws-region: ${{ env.AWS_REGION }} - name: Upload Dev Build - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: organic-${{ env.BUILD_NUMBER }}.zip path: build/organic-${{ env.BUILD_NUMBER }}.zip diff --git a/.github/workflows/publish-to-wp.yaml b/.github/workflows/publish-to-wp.yaml index 4c0fa1c..f816593 100644 --- a/.github/workflows/publish-to-wp.yaml +++ b/.github/workflows/publish-to-wp.yaml @@ -35,7 +35,7 @@ jobs: with: php-version: '7.4' extensions: zip - tools: composer:2.5.5 + tools: composer - name: Build plugin run: ./build-zip.sh ${{ steps.latest_release.outputs.tag_name }} @@ -71,4 +71,4 @@ jobs: message_id: ${{ steps.slack.outputs.message_id }} channel: dev-notifications status: FAILED - color: danger \ No newline at end of file + color: danger diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c9686cc..fba24f2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -40,14 +40,14 @@ jobs: with: php-version: '7.4' extensions: zip - tools: composer:2.5.5 + tools: composer - name: Build plugin run: ./build-zip.sh ${{ env.BUILD_NUMBER }} # Configure AWS credentials - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@v4 with: role-session-name: GitHub_to_AWS_via_FederatedOIDC role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT }}:role/GitHubActionIAMRole