Skip to content

Commit f4e222a

Browse files
authored
Workflow to update the sample project
1 parent 6bfc84c commit f4e222a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/update-sample

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update-Sample
2+
on: workflow_dispatch
3+
4+
jobs:
5+
update-project:
6+
name: Update Sample
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
steps:
11+
- name: Announce repo
12+
run: echo ${{ github.event.inputs.name }}
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
with:
16+
submodules: recursive
17+
- name: Execute
18+
run: |
19+
cd to-build/sdl3-sample
20+
git pull --recurse-submodules
21+
- name: git config
22+
run: |
23+
git config user.name github-actions[bot]
24+
git config user.email 22283943+github-actions[bot]@users.noreply.github.com
25+
git stash
26+
git pull
27+
git stash pop
28+
- name: git commit
29+
run: git add . && git commit -m "Update android-project"
30+
- name: git push
31+
run: git push origin HEAD:main

0 commit comments

Comments
 (0)