Skip to content

Commit

Permalink
ci: Update the website to latest main commit on push (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
icehaunter authored Sep 20, 2023
1 parent 58f54d6 commit 3c0ade2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/website_update_from_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docs / Deploy
on:
push:
branches:
- main
paths:
- 'docs/**'
- 'examples/introduction/**'

jobs:
update_website_submodule:
name: Update submodule to latest `main` commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.CROSSREPO_PAT }}
repository: electric-sql/website
ref: main
submodules: true
- name: Update the submodule to latest `main`
run: git submodule update --init --recursive --remote
- name: Commit updated submodule
run: >-
git config user.name github-actions[bot];
git config user.email github-actions[bot]@users.noreply.github.com;
if [ -n "`git status --porcelain`" ];
then
git commit -am "updated docs submodule";
git push;
fi

0 comments on commit 3c0ade2

Please sign in to comment.