From d5c52aab0947ae53ee2d029c4a0510c3f90db145 Mon Sep 17 00:00:00 2001 From: osaajani <> Date: Tue, 23 Jun 2020 18:58:19 +0200 Subject: [PATCH] update codestyle --- .github/workflows/codestyle.yml | 18 +++++++++++++++++- .github/workflows/debian.yml | 32 -------------------------------- 2 files changed, 17 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/debian.yml diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 1b64913..c438a06 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -16,6 +16,22 @@ jobs: - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga with: - args: --config="./tests/php-cs-fixer/php_cs.config" + args: --config="./tests/php-cs-fixer/php_cs.config" + + - name: Config git + run: | + git config --global user.email "raspbianfrance@gmail.com" + git config --global user.name "Github Actions Bot" + + - name: Commit changes + run: | + git add --all + git commit -m "Fix codestyle." + + - name: Push changes # push the modif to repo + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + force: true diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml deleted file mode 100644 index 84c4f4c..0000000 --- a/.github/workflows/debian.yml +++ /dev/null @@ -1,32 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: CodeStyle - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch -on: [push] - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - php-cs-fixer: - name: PHP-CS-Fixer - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: PHP-CS-Fixer - uses: docker://oskarstark/php-cs-fixer-ga - with: - args: --config="./tests/php-cs-fixer/php_cs.config" - - - name: Commit changes - run: | - git add --all - git commit -m "Fix codestyle." - - - name: Push changes # push the modif to repo - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - force: true - -