-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 878 Bytes
/
update-sample.yml
File metadata and controls
32 lines (31 loc) · 878 Bytes
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
name: Update-Sample
on: workflow_dispatch
jobs:
update-sample:
name: Update Sample
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: recursive
- name: Execute
run: |
cd to-build/sdl3-sample
git config pull.rebase false
git pull
- 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