Skip to content

Commit

Permalink
feat: republish site if index.html is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
cybardev committed Jan 21, 2024
1 parent 9f3adf6 commit dcddb52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/resume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ jobs:
id: check_updates
if: steps.generate.outputs.skip == 'false'
run: |
FILE_CHANGED=$(git diff ./static/assets | grep md | head -n 1)
UPDATE=$(python3 -c "print(str('${FILE_CHANGED}'.endswith('.md')).lower())")
RESUME_CHANGED=$(git diff ./static/assets | grep md | head -n 1)
INDEX_CHANGED=$(git diff ./static | grep index.html | head -n 1)
UPDATE=$(python3 -c "print(str('${RESUME_CHANGED}'.endswith('.md') or '${INDEX_CHANGED}'.endswith('html')).lower())")
echo "Re-upload resume: ${UPDATE}"
echo "changed=${UPDATE}" >> "${GITHUB_OUTPUT}"
- name: Commit changes
Expand Down

0 comments on commit dcddb52

Please sign in to comment.