-
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 2 KB
/
composer_normalize.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Normalize composer.json
on: [ push, pull_request ]
permissions: write-all
jobs:
normalize:
needs: style
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
package:
- Core
- Cash
- SberAuth
- SberOnline
- SberQrCode
- TinkoffAuth
- TinkoffCredit
- TinkoffOnline
- TinkoffQrCode
- TemplateDriver
- TemplateDriverAuth
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json
coverage: none
- name: Git setup
if: success()
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Install dependency
run: composer global require ergebnis/composer-normalize
- name: Normalize composer.json
id: normalizer
run: composer normalize src/${{ matrix.package }}/composer.json
{ git add . && git commit -a -m "Normalized \`composer.json\` files"; }
- name: Create a Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: normalize/package
branch-suffix: random
delete-branch: true
add-paths: src/${{ matrix.package }}/composer.json
title: "[${{ matrix.package }}]: Normalized \`composer.json\`"
commit-message: Normalized \`composer.json\`