-
-
Notifications
You must be signed in to change notification settings - Fork 32
52 lines (40 loc) · 1.3 KB
/
update.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://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Update"
on: # yamllint disable-line rule:truthy
schedule:
- cron: "0 9 * * *"
jobs:
schema:
name: "Schema"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "7.4"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Set up PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Download schema"
run: "wget --output-document=resource/schema.json https://getcomposer.org/schema.json"
- name: "Show diff"
run: "git diff resource/schema.json"
- name: "Laxify schema"
run: "php bin/laxify-schema.php"
- name: "Open pull request updating schema"
uses: "gr2m/create-or-update-pull-request-action@v1"
with:
author: "ergebnis-bot <[email protected]>"
branch: "feature/schema"
body: |
This PR
- [x] updates `schema.json`
commit-message: "Enhancement: Update schema.json"
path: "resource/"
title: "Enhancement: Update `schema.json`"
env:
GITHUB_TOKEN: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"