Skip to content

Update 2023-11-10-rachel-lombardi-feature.md #109

Update 2023-11-10-rachel-lombardi-feature.md

Update 2023-11-10-rachel-lombardi-feature.md #109

name: Dispatch Preview Update
on:
push:
branches: [development]
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Setup SSH Keys and known_hosts
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Pull new posts
run: |
git clone --recursive [email protected]:CHTC/article-preview.git
cd article-preview
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git submodule update --remote
git add _posts
git remote -v
git commit -m "Article Submodule Updated"
git push [email protected]:CHTC/article-preview.git