Update 2023-11-10-rachel-lombardi-feature.md #109
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: 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 |