-
-
Notifications
You must be signed in to change notification settings - Fork 32
44 lines (36 loc) · 1.08 KB
/
update-cli-schema.yml
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
name: Update cli schema
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
update-file:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "22.x"
- run: corepack enable
- run: npm install
- name: Run your script to update the file
run: npm run cli-schema
- name: Set git globals
run: |
git config --local user.email "[email protected]"
git config --local user.name "Tolgee Machine"
- name: Commit and push changes
run: |
git add .
git diff --quiet && git diff --staged --quiet || git commit -m "chore: Update CLI schema"
- name: Create or update pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore: Update CLI schema'
title: 'Cli schema update'
body: 'This is an automated daily update.'
branch: cli-schema-update