-
Notifications
You must be signed in to change notification settings - Fork 24
58 lines (53 loc) · 1.69 KB
/
generate.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Generate
on:
schedule:
# Runs "At every 30th minute" (see https://crontab.guru)
- cron: "*/30 * * * *"
push:
branches:
- main
jobs:
generate:
name: Generate
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 2
ref: main
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
uses: py-actions/py-dependency-install@v4
- name: "Generate 1/2"
run: "python scripts/generate_ci_1.py"
# Make sure we can access the generated packages in the next step
- name: Install Python local dependency
run: |
pip install -e .
- name: "Generate 2/2"
run: "python scripts/generate_ci_2.py"
- name: "File changes detected: Create PR"
id: create-pr
uses: peter-evans/create-pull-request@v4
with:
add-paths: |
src/**/*
docs/**/*
commit-message: "fix: automatic api update"
committer: "Moralis CI/CD <[email protected]>"
branch: generate
base: main
title: "Update SDK"
body: |
This PR was automatically opened via Github Actions.
New Api changes have been detected. To release:
1. Make any manual changes that are needed
2. Merge this PR to `main`
3. Wait for the next Github Action to do an automatic release
**Note that this PR is automatically updated when more changes are made to the APIs.**
labels: "Automated PR"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}