From 2bd479a686e6fab11dfced82968a3d15e5247091 Mon Sep 17 00:00:00 2001 From: AM Hoffman Date: Thu, 30 May 2024 18:01:38 -0400 Subject: [PATCH] add out for secrets dir --- .github/workflows/render-site.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/render-site.yml b/.github/workflows/render-site.yml index 5aa2354..cf214ec 100644 --- a/.github/workflows/render-site.yml +++ b/.github/workflows/render-site.yml @@ -70,6 +70,7 @@ jobs: exit 1 # Commit the rendered site files - html files and site_libs files +# The git reset step will remove any other files created in this workflow, such as API keys - name: Commit rendered site files run: | git config --global --add safe.directory $GITHUB_WORKSPACE @@ -77,5 +78,6 @@ jobs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' git add --force docs/* git commit -m 'Render site' || echo "No changes to commit" + git reset --hard HEAD git pull --rebase --allow-unrelated-histories --strategy-option=ours git push origin main || echo "No changes to push"