-
-
Notifications
You must be signed in to change notification settings - Fork 53
62 lines (50 loc) · 1.48 KB
/
update-models.yml
File metadata and controls
62 lines (50 loc) · 1.48 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
name: "Update Models"
on:
workflow_dispatch:
# schedule:
# - cron: '0 8 * * *'
jobs:
update-models:
name: "Update Models"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "7.4"
operating-system:
- "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
tools: composer:v2
php-version: "7.4"
ini-values: memory_limit=-1
- name: "Cache dependencies"
uses: "actions/cache@v4"
with:
path: |
~/.composer/cache
vendor
key: "php-7.4-locked"
restore-keys: "php-7.4"
- name: "Install locked dependencies"
run: "composer install --no-interaction --no-progress --no-suggest"
- name: "Update SDK Models"
run: "composer generate"
- name: "Git status"
run: "git status"
- name: "Create Pull Request"
uses: peter-evans/create-pull-request@v3
with:
commit-message: "Updated SDK Models"
committer: "GitHub <noreply@github.com>"
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: update/sdk-models
title: "Updated SDK Models"
- name: "Check output"
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"