This commit is contained in:
Vaxry 2022-08-13 12:13:21 +02:00 committed by Mihai Fufezan
parent 84d022c6e9
commit cf4bf5582b
No known key found for this signature in database
GPG Key ID: 5899325F2F120900
1 changed files with 27 additions and 16 deletions

View File

@ -1,17 +1,28 @@
name: Update website name: Send submodule updates to the website repository
on: on:
push: push:
branches: branches:
- main - main
jobs: jobs:
notify-parent-repo: update:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps:
- name: Repository Dispatch steps:
uses: peter-evans/repository-dispatch@v2 - uses: actions/checkout@v2
with: with:
token: ${{ secrets.TOKN }}
repository: hyprwm/hyprland-wiki-backend repository: hyprwm/hyprland-wiki-backend
event-type: sync-shared-submodule token: ${{ secrets.TOKEN }}
- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit
run: |
git config user.email "actions@github.com"
git config user.name "GitHub Actions - update submodules"
git add --all
git commit -m "Update submodules" || echo "No changes to commit"
git push