git stash
This commit is contained in:
parent
ed5b833f39
commit
1d28576912
1 changed files with 5 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue