mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-10-03 15:59:04 +00:00
add check whether submodules exist
This commit is contained in:
parent
818062605c
commit
1f1a430efc
15
.github/workflows/build-shit.yml
vendored
15
.github/workflows/build-shit.yml
vendored
|
@ -14,8 +14,19 @@ jobs:
|
||||||
- name: ensure git cli is installed
|
- name: ensure git cli is installed
|
||||||
run: apt update && apt install sudo git -y
|
run: apt update && apt install sudo git -y
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: print latest_commit
|
with:
|
||||||
run: echo ${{ github.sha }}
|
submodules: 'recursive'
|
||||||
|
token: ${{ secrets.GH_RO_PAT }}
|
||||||
|
- name: check whether submodules exist
|
||||||
|
run:
|
||||||
|
# debug output
|
||||||
|
echo gh=${{ github.sha }}
|
||||||
|
echo head=$(git rev-parse HEAD)
|
||||||
|
echo art=$(git -C art rev-parse HEAD)
|
||||||
|
echo assets=$(git -C assets rev-parse HEAD)
|
||||||
|
# checks if HEAD commit hash in submodules is diff from current repo, and therefore exists
|
||||||
|
test $(git rev-parse HEAD) != $(git -C art rev-parse HEAD)
|
||||||
|
test $(git rev-parse HEAD) != $(git -C assets rev-parse HEAD)
|
||||||
- id: should_run
|
- id: should_run
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
name: check latest commit is less than a day
|
name: check latest commit is less than a day
|
||||||
|
|
Loading…
Reference in a new issue