deploy content changes #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Fetch Content Updates" | |
on: [repository_dispatch, workflow_dispatch] | |
jobs: | |
pull_content_updates: | |
name: pull_content_updates | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
submodules: true | |
- name: Pull submodule | |
run: | | |
git pull --recurse-submodules | |
git submodule update --init --recursive --remote | |
- name: Push changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Jonathan Yeong" | |
git add . | |
git commit -m "[Workflow] Updating website content" | |
git push | |