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:
parent
8c513b55de
commit
6bf3d7ddaf
29
.github/actions/sync.yml
vendored
Normal file
29
.github/actions/sync.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user