1
Fork 0
mirror of https://github.com/xivdev/EXDSchema.git synced 2025-06-04 07:07:45 +00:00
EXDSchema/.github/workflows/update-submodules.yml
Asriel 0356250422
Complete migration to new repository layout (#63)
* Wipe schemas

* Update metadata items

* Add gitmodules

* Add submodules

* Rename remotes

* Update submodules

* Update submodules

* Update CI/CD
2025-03-24 13:03:02 -07:00

51 lines
No EOL
1.4 KiB
YAML

name: Update Submodules
on:
repository_dispatch:
types: [version-push]
concurrency:
group: ${{github.workflow}}
cancel-in-progress: true
jobs:
update-submodule:
name: Update Submodules
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
steps:
- name: Print Dispatch Info
run: |
echo "Actor: ${{github.event.client_payload.actor}}"
echo "Head Ref: ${{github.event.client_payload.head_ref}}"
echo "Head Sha: ${{github.event.client_payload.head_sha}}"
echo "Base Ref: ${{github.event.client_payload.base_ref}}"
- name: Checkout Main
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
submodules: recursive
- name: Update Submodules
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit Changes
id: commit
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add --all
git commit -m "Update submodules" --author="${{github.event.client_payload.actor}} <${{github.event.client_payload.actor}}@users.noreply.github.com>" || :
- name: Push Changes
run: |
git push