diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index e402d98..0fb6764 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -75,9 +75,13 @@ jobs: done if [ "$changes" = true ]; then + # Stash local changes before rebasing + git stash push -m "temp-stash-before-rebase" git fetch origin main git rebase origin/main + git stash pop || true + # Now re-check and commit the changes git add .cache/*-base.digest git commit -m "Update base image digests ($(date -u +'%Y-%m-%dT%H:%M:%SZ'))" git push origin HEAD:main