Skip to content

Commit

Permalink
Update blog resume when there's a change in Reactsume data
Browse files Browse the repository at this point in the history
  • Loading branch information
brunopc-net committed Aug 15, 2024
1 parent 9ba4c18 commit dca3b4b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/update.blog.resume.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Update blog resume data

on:
push:
branches:
- brunopc
paths:
- public/resume.json

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout brunopc branch
uses: actions/checkout@v3
with:
ref: brunopc

- name: Set up Git user
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Clone Docusaurus-Blog repository
uses: actions/checkout@v3
with:
repository: brunopc-net/Docusaurus-Blog
ref: gh-pages
path: Docusaurus-Blog

- name: Update resume.json file
run: |
cp public/resume.json Docusaurus-Blog/data/
- name: Commit changes
run: |
cd Docusaurus-Blog
git add resume.json
git commit -m "Reactsume updates resume.json"
- name: Push changes
run: |
git push
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTION_TOKEN }}

0 comments on commit dca3b4b

Please sign in to comment.