-
-
Notifications
You must be signed in to change notification settings - Fork 5
76 lines (75 loc) · 2.74 KB
/
update-dependencies.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Update Dependencies
on:
push:
branches: [ master ]
schedule:
- cron: "0 2 * * *"
- cron: "0 8 * * *"
- cron: "0 14 * * *"
- cron: "0 20 * * *"
jobs:
Update:
runs-on: ubuntu-latest
steps:
- name: checking out code
uses: actions/checkout@v4
with:
ref: master
token: ${{ secrets.GITHUB_TOKEN }}
lfs: false
submodules: true
clean: false
fetch-depth: 0
#persist-credentials: false
- name: "Import bot's GPG key for signing commits"
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.ACTION_COMMIT_SING_PRIVATE_KEY }}
passphrase: ${{ secrets.ACTION_COMMIT_SING_PASS }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
- name: Extract commit data
uses: rlespinasse/[email protected]
- name: Update submodules
id: mod
run: |
git config --global user.name "Madman10K"
git config --global user.email "[email protected]"
git fetch --all
git checkout auto || git checkout -b auto
git submodule update --remote --merge --init
cd Framework/ThirdParty/source-libraries/cimgui || exit
git clone https://github.com/dearimgui/dear_bindings.git --recursive || exit
cd dear_bindings || exit
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 dear_bindings.py --imconfig-path ../../../imgui/core/imconfig.h -o cimgui ../../../imgui/core/imgui.h
mv cimgui.cpp cimgui.h ../
cd .. || exit
deactivate
rm -rf dear_bindings
cd ../../glad || exit
rm -rf include src || exit
git clone https://github.com/Dav1dde/glad.git --recursive
cd glad
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 -m glad --api gl:core,gles1,gles2,glsc2 --out-path ../
cd ..
sed -i "s/generated by glad .*//g" include/glad/gl.h include/glad/gles1.h include/glad/gles2.h include/glad/glsc2.h
rm -rf glad
cd ../../../ || exit
(git add . && git commit -m "auto" && git push origin HEAD:auto && echo "out=s" >> $GITHUB_OUTPUT) || echo "out=?" >> $GITHUB_OUTPUT
- name: Create PR
if: "steps.mod.outputs.out != '?'"
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.ACTION_ISSUE_SECRET }}
with:
filename: .github/auto-issue-template.md
update_existing: true
search_existing: open