-
Notifications
You must be signed in to change notification settings - Fork 35
79 lines (61 loc) 路 2.82 KB
/
Copy pathrenew.yaml
File metadata and controls
79 lines (61 loc) 路 2.82 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# https://docs.github.com/en/actions
name: "Renew"
on: # yamllint disable-line rule:truthy
schedule:
- cron: "0 0 1 1 *"
permissions: {}
jobs:
license:
name: "License"
runs-on: "ubuntu-latest"
timeout-minutes: 5
strategy:
matrix:
php-version:
- "7.4"
dependencies:
- "locked"
steps:
- name: "Checkout"
uses: "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0" # v7.0.0
with:
token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
- name: "Set up PHP"
uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # 2.37.2
with:
coverage: "none"
extensions: "none, ctype, curl, dom, iconv, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter"
php-version: "${{ matrix.php-version }}"
- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
- name: "Validate composer.json and composer.lock"
run: "composer validate --ansi --strict"
- name: "Determine composer cache directory"
uses: "ergebnis/.github/actions/composer/determine-cache-directory@9785f99b3546d64df9cb331449e7fcdc41885d25" # 1.11.0
- name: "Cache dependencies installed with composer"
uses: "actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9" # v6.1.0
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ergebnis/.github/actions/composer/install@9785f99b3546d64df9cb331449e7fcdc41885d25" # 1.11.0
with:
dependencies: "${{ matrix.dependencies }}"
- name: "Cache cache directory for friendsofphp/php-cs-fixer"
uses: "actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9" # v6.1.0
with:
path: ".build/php-cs-fixer/"
key: "php-${{ matrix.php-version }}-php-cs-fixer-${{ github.ref_name }}"
restore-keys: |
php-${{ matrix.php-version }}-php-cs-fixer-main
php-${{ matrix.php-version }}-php-cs-fixer-
- name: "Run friendsofphp/php-cs-fixer"
run: "vendor/bin/php-cs-fixer fix --ansi --config=.php-cs-fixer.php --diff --show-progress=dots --verbose"
- name: "Commit modified files"
uses: "stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d" # v7.2.0
with:
commit_author: "ergebnis-bot <bot@ergebn.is>"
commit_message: "Enhancement: Update license year"
commit_user_email: "bot@ergebn.is"
commit_user_name: "ergebnis-bot"