mirror of
https://github.com/spacebarchat/spacebarchat.git
synced 2026-04-26 19:35:11 +00:00
30 lines
815 B
YAML
30 lines
815 B
YAML
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
|