generated from ergebnis/php-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.31 KB
/
renew.yaml
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
# https://docs.github.com/en/actions
name: "Renew"
on: # yamllint disable-line rule:truthy
schedule:
- cron: "1 0 1 1 *"
jobs:
license:
name: "License"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "8.3"
dependencies:
- "locked"
steps:
- name: "Checkout"
uses: "actions/checkout@v4.2.2" # v4.1.2
with:
token: "${{ secrets.LCTRS_BOT_TOKEN }}"
- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@2.31.1"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ramsey/composer-install@3.0.0"
with:
dependency-versions: "${{ matrix.dependencies }}"
- name: "Run update license script"
run: "php update-license.php"
- name: "Commit modified files"
uses: "stefanzweifel/git-auto-commit-action@v5.0.1"
with:
commit_author: "lctrs-bot <bot@prmntr.me>"
commit_message: "license: update year"
commit_user_email: "bot@prmntr.me"
commit_user_name: "lctrs-bot"