1
0
mirror of https://github.com/spacebarchat/spacebarchat.git synced 2024-11-22 02:12:30 +01:00

🐛 github actions sync

This commit is contained in:
Flam3rboy 2021-05-28 00:38:31 +02:00
parent 8c513b55de
commit 6bf3d7ddaf

29
.github/actions/sync.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Update submodules
# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
# This workflow contains a single job called "update"
update:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit & push changes
run: |
git config --global user.name Fosscord
git config --global user.email actions@github.com
git commit -am "Update submodules"
git push