File tree 1 file changed +17
-5
lines changed
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ name: Generate Thrift Code
3
3
on :
4
4
push :
5
5
branches :
6
- - main
6
+ - develop
7
7
pull_request :
8
8
branches :
9
- - main
9
+ - develop
10
10
11
11
jobs :
12
12
generate :
@@ -15,16 +15,28 @@ jobs:
15
15
steps :
16
16
- name : Checkout code
17
17
uses : actions/checkout@v3
18
-
19
- - name : Install Thrift
20
- run : sudo apt-get install -y thrift-compiler
21
18
22
19
- name : Set up Python
23
20
uses : actions/setup-python@v4
24
21
with :
25
22
python-version : ' 3.x'
26
23
24
+ - name : Install Thrift
25
+ run : |
26
+ sudo apt-get install -y thrift-compiler
27
+ python3 -m pip install --upgrade pip
28
+ pip install -r requirements.txt
29
+
27
30
- name : Run generate.sh
28
31
run : |
29
32
chmod +x ./generate.sh
30
33
./generate.sh
34
+ - name : Commit and push generated files
35
+ run : |
36
+ git config --global user.name "github-actions[bot]"
37
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
38
+ git add .
39
+ git commit -m "Automated update: Generated Thrift classes"
40
+ git push origin develop
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments