From 1d28576912d6064791f685adcbdf35ba4414b7ec Mon Sep 17 00:00:00 2001 From: miwr Date: Thu, 10 Apr 2025 11:13:35 +0200 Subject: [PATCH] git stash --- .forgejo/workflows/deploy.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 1a91a3e..e87e82d 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -15,7 +15,7 @@ jobs: echo "registry=${registry}" repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" echo "repository=${repository}" >> "$GITHUB_OUTPUT" - echo "repository=${repository}" + echo "repository=${repository}" - name: Docker meta uses: docker/metadata-action@v5 id: docker @@ -43,7 +43,9 @@ jobs: repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" fullrepo=https://${registry}/${repository}.git git init - # git pull ${fullrepo} + git stash + git pull ${fullrepo} + git stash pop npm install @angular/cli npm run lint - name: Update version @@ -62,7 +64,7 @@ jobs: jq ".version = \"$new_version\"" package.json > temp.json && mv temp.json package.json git add . git commit -m "Automated update by GitHub Actions" - git push origin HEAD:${{ github.ref_name }} + git push origin HEAD:${{ github.ref_name }} - name: Build and push uses: docker/build-push-action@v6 with: