From 4db8e338f0ad0c366e605666f8b363951ac69ec8 Mon Sep 17 00:00:00 2001 From: Damiano Improta Date: Tue, 7 Oct 2025 23:06:49 +0200 Subject: [PATCH 1/2] change yaml format code --- .github/workflows/format-code.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/format-code.yml b/.github/workflows/format-code.yml index 3d2fe9e..c2c8050 100644 --- a/.github/workflows/format-code.yml +++ b/.github/workflows/format-code.yml @@ -5,7 +5,7 @@ on: types: [opened, synchronize, reopened] permissions: - contents: read + contents: write jobs: build: From d1d0a264a3ebcf1cf64a11917e4ee6f01dc2796e Mon Sep 17 00:00:00 2001 From: Damiano Improta Date: Tue, 7 Oct 2025 23:12:56 +0200 Subject: [PATCH 2/2] commentato per ora il format code --- .github/workflows/format-code.yml | 92 +++++++++++++++---------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/.github/workflows/format-code.yml b/.github/workflows/format-code.yml index c2c8050..bb020ea 100644 --- a/.github/workflows/format-code.yml +++ b/.github/workflows/format-code.yml @@ -1,46 +1,46 @@ -name: PHP Composer - -on: - pull_request: - types: [opened, synchronize, reopened] - -permissions: - contents: write - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: ./app/vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- - - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - - name: format code - run: bash commands php-cs-fixer - - name: Check for changes - run: | - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - if [ -n "$(git status --porcelain)" ]; then - echo "Formatting changes detected" - git add -A - git commit -m "chore: apply formatting" || echo "no commit" - git push origin HEAD:${{ github.head_ref }} - else - echo "No formatting changes" - fi +#name: PHP Composer +# +#on: +# pull_request: +# types: [opened, synchronize, reopened] +# +#permissions: +# contents: write +# +#jobs: +# build: +# +# runs-on: ubuntu-latest +# +# steps: +# - uses: actions/checkout@v4 +# +# - name: Validate composer.json and composer.lock +# run: composer validate +# +# - name: Cache Composer packages +# id: composer-cache +# uses: actions/cache@v3 +# with: +# path: ./app/vendor +# key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} +# restore-keys: | +# ${{ runner.os }}-php- +# +# - name: Install dependencies +# run: composer install --prefer-dist --no-progress +# +# - name: format code +# run: bash commands php-cs-fixer +# - name: Check for changes +# run: | +# git config user.name "github-actions[bot]" +# git config user.email "41898282+github-actions[bot]@users.noreply.github.com" +# if [ -n "$(git status --porcelain)" ]; then +# echo "Formatting changes detected" +# git add -A +# git commit -m "chore: apply formatting" || echo "no commit" +# git push origin HEAD:${{ github.head_ref }} +# else +# echo "No formatting changes" +# fi