forked from Ravbug/sdl-android-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.02 KB
/
update.yml
File metadata and controls
34 lines (34 loc) · 1.02 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
name: Update-Project
on: workflow_dispatch
# Updates the SDL wrapper project java code
jobs:
update-project:
name: Update Project
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Announce repo
run: echo ${{ github.event.inputs.name }}
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
- name: Execute
run: |
git clone https://github.com/libsdl-org/SDL --depth=1
rm -r app/src
mv SDL/android-project/app/src app/src
mv SDL/android-project/app/proguard-rules.pro app/
rm -rf SDL/
- name: git config
run: |
git config user.name github-actions[bot]
git config user.email 22283943+github-actions[bot]@users.noreply.github.com
git stash
git pull
git stash pop
- name: git commit
run: git add . && git commit -m "Update android-project"
- name: git push
run: git push origin HEAD:main