mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-21 20:35:57 +01:00
fix ci
This commit is contained in:
parent
84d022c6e9
commit
cf4bf5582b
1 changed files with 27 additions and 16 deletions
43
.github/workflows/updateSite.yml
vendored
43
.github/workflows/updateSite.yml
vendored
|
@ -1,17 +1,28 @@
|
|||
name: Update website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
notify-parent-repo:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Repository Dispatch
|
||||
uses: peter-evans/repository-dispatch@v2
|
||||
with:
|
||||
token: ${{ secrets.TOKN }}
|
||||
name: Send submodule updates to the website repository
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
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
|
Loading…
Reference in a new issue