mirror of
https://github.com/solero/wand.git
synced 2024-11-21 21:17:22 +00:00
c9b8de1ee9
* Change url of wns server * Add snowflake submodule * Add snowflake docker deployment * Update submodule * Update submodule * Refactor snowflake compose * Fast-forward snowflake submodule * Add snowflake configuration to `.env` * Set force start for regular game to `False` * Add host & port configuration * Add wns url for language-specific sites * Add snowflake to submodule sync * Add snowflake configuration to install script
35 lines
1.4 KiB
YAML
35 lines
1.4 KiB
YAML
name: submodule-sync
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * 1,3,5'
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
sync:
|
|
name: 'Submodules Sync'
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Git submodule update
|
|
run: |
|
|
git update-index --cacheinfo 160000,$(git ls-remote https://git.solero.me/solero/vanilla-media.git/ HEAD | awk '{ print $1}'),vanilla-media
|
|
git update-index --cacheinfo 160000,$(git ls-remote https://git.solero.me/solero/legacy-media.git/ HEAD | awk '{ print $1}'),legacy-media
|
|
git update-index --cacheinfo 160000,$(git ls-remote https://github.com/solero/houdini.git/ HEAD | awk '{ print $1}'),houdini
|
|
git update-index --cacheinfo 160000,$(git ls-remote https://github.com/solero/dash.git/ HEAD | awk '{ print $1}'),dash
|
|
git update-index --cacheinfo 160000,$(git ls-remote https://github.com/lekuruu/snowflake.git/ HEAD | awk '{ print $1}'),snowflake
|
|
|
|
- name: Commit update
|
|
run: |
|
|
git config user.name 'github-actions[bot]'
|
|
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
|
|
git commit -am "Fast-forward sub-modules" && git push || echo "No changes to commit" |