Skip to content

[reformat][adyen-sdk-automation] automated change #466

[reformat][adyen-sdk-automation] automated change

[reformat][adyen-sdk-automation] automated change #466

Workflow file for this run

name: PHP Format
on:
push:
branches:
- 'sdk-automation/models'
jobs:
format:
if: ${{ ! startsWith(github.event.head_commit.message, 'style(fmt)') }}
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v1
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHP Code Sniffer
run: composer run fmt || true
- run: |
git config user.name AdyenAutomationBot
git config user.email "${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}"
git add .
git commit -m "style(fmt): code formatted"
git push