mirror of
https://github.com/spacebarchat/spacebarchat.git
synced 2026-10-23 00:02:34 +00:00
✨ update actions
This commit is contained in:
1 parent
c48774690e
commit
edee361af6
1 file changed
@@ -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
|
||||
Reference in new issue
Block a user