Skip to content

Commit

Permalink
feat: republish resume only if markdown has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
cybardev committed Jan 18, 2024
1 parent 6a65798 commit d7f33ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/resume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ jobs:
uses: actions/checkout@v4
- name: Run resume generation script
run: python3 example.py
- name: Check for resume changes
id: check_updates
run: |
FILE_CHANGED=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} ./assets/Resume_*.md)
echo "changed=${FILE_CHANGED}" >> "${GITHUB_OUTPUT}"
- name: Commit changes
if: endsWith(steps.check_updates.outputs.changed, '.md')
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
Expand Down

0 comments on commit d7f33ee

Please sign in to comment.