From cf4bf5582b1a72f78b43d7f6d9663bb221b97742 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sat, 13 Aug 2022 12:13:21 +0200 Subject: [PATCH] fix ci --- .github/workflows/updateSite.yml | 43 ++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/.github/workflows/updateSite.yml b/.github/workflows/updateSite.yml index d5e8f87..f5305ed 100644 --- a/.github/workflows/updateSite.yml +++ b/.github/workflows/updateSite.yml @@ -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 \ No newline at end of file + 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 \ No newline at end of file