Fix headhot link #26
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: Update blog resume data | |
on: | |
push: | |
branches: | |
- brunopc | |
paths: | |
- public/resume.json | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout brunopc branch | |
uses: actions/checkout@v4 | |
with: | |
ref: brunopc | |
- name: Validate resume json syntax | |
uses: GrantBirki/[email protected] | |
with: | |
files: | | |
public/resume.json | |
- run: echo "resume.json syntax is valid 🎉" | |
- name: Clone Docusaurus-Blog repository | |
uses: actions/checkout@v3 | |
with: | |
repository: brunopc-net/Docusaurus-Blog | |
ref: master | |
path: Docusaurus-Blog | |
- name: Set SSH deploy key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_DEPLOY_KEY }} | |
- name: Set up Git user | |
run: | | |
git config --global user.email '[email protected]' | |
git config --global user.name 'Bruno PC' | |
- name: Update resume.json file | |
run: | | |
cp public/resume.json Docusaurus-Blog/static/data/ | |
- name: Commit & push changes | |
run: | | |
cd Docusaurus-Blog | |
git add static/data/resume.json | |
git commit -m "Reactsume updates resume.json" | |
git remote add external [email protected]:brunopc-net/Docusaurus-Blog.git | |
git push origin master |