diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index c93865b..fe20f8b 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -20,11 +20,7 @@ jobs: git config --global user.name "davidedigrande" git config --global user.email "davidedigrande.dev@gmail.com" - git rm -r --cached resume.yml - git commit -m "Remove resume.yml" - git add resume.yml - git commit -m "Update resume.yml" - git push + mv resume*.yml resume.yml git clone https://x-access-token:${GH_TOKEN}@github.com/davidedigrande/davidedigrande.github.io.git pip install -r requirements.txt @@ -36,6 +32,16 @@ jobs: git add . git commit -m "Update from Resume-Builder" git push + + cd .. + git rm --cached resume*.yml + git commit -m "Remove resume.yml" + + mv resume.yml resume$(md5sum resume.yml | awk '{print $1}').yml + + git add resume*.yml + git commit -m "Update resume.yml" + git push env: GH_TOKEN: ${{ secrets.RESUME_BUILDER_GITHUB_ACTION_TOKEN }}