From dcddb523b243681c9a467a06ab0c963caf4d693e Mon Sep 17 00:00:00 2001 From: cybardev Date: Sun, 21 Jan 2024 11:50:53 -0400 Subject: [PATCH] feat: republish site if index.html is updated --- .github/workflows/resume.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/resume.yml b/.github/workflows/resume.yml index 9ab4418..2b922b5 100644 --- a/.github/workflows/resume.yml +++ b/.github/workflows/resume.yml @@ -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