From 407b4533ab4276b9faa95a00d0aea9b54ddb5693 Mon Sep 17 00:00:00 2001 From: carlssonk Date: Tue, 24 Sep 2024 05:58:50 +0200 Subject: [PATCH] Stash before checkout --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bdaf39c..7024366 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -162,6 +162,7 @@ jobs: git config user.name github-actions git config user.email github-actions@github.com + git stash if git ls-remote --exit-code --heads origin ${{ env.branch_name }} >/dev/null 2>&1; then git fetch --all git checkout ${{ env.branch_name }}