forked from php-sepa-xml/php-sepa-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.06 KB
/
Copy pathrectorci.yml
File metadata and controls
41 lines (34 loc) · 1.06 KB
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
# Checks code with Rector and auto-commits any fixes
name: RectorCI
on:
pull_request:
branches: [ "testing"]
permissions:
contents: read
jobs:
rector:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
-
if: github.event.pull_request.head.repo.full_name == github.repository
uses: actions/checkout@v3
with:
# Must be used to trigger workflow after push
token: ${{ secrets.RECTOR_ACCESS_TOKEN }}
-
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
- name: Install dependencies
run: composer install --no-progress --ansi
- name: Run Rector
run: bin/rector --ansi
-
# commit only to core contributors who have repository access
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[rector] Rector fixes'
commit_author: 'GitHub Action <actions@github.com>'
commit_user_email: 'action@github.com'