From 0100eddd4f27612075ecc9db1c6e68421764423e Mon Sep 17 00:00:00 2001 From: TortitasT Date: Thu, 9 Feb 2023 19:50:04 +0100 Subject: [PATCH] changed php version for style to 8.1, add permissions for action --- .github/workflows/fix_style.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fix_style.yml b/.github/workflows/fix_style.yml index 90a4a45..2ea3bbf 100644 --- a/.github/workflows/fix_style.yml +++ b/.github/workflows/fix_style.yml @@ -8,27 +8,33 @@ jobs: style: runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: - uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.2 + php-version: 8.1 - name: Cache Composer packages id: composer-cache uses: actions/cache@v3 with: path: vendor - key: ${{ runner.os }}-php-8.2-${{ hashFiles('**/composer.lock') }} + key: ${{ runner.os }}-php-8.1-${{ hashFiles('**/composer.lock') }} restore-keys: | - ${{ runner.os }}-php-8.2 + ${{ runner.os }}-php-8.1 + - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' run: | composer install composer dump + - name: Fix styles run: vendor/bin/php-cs-fixer fix