This commit is contained in:
parent
e21b07c11d
commit
5d2d31bd5c
@ -15,9 +15,6 @@ jobs:
|
|||||||
uses: https://github.com/actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # whole history and tags, can refine this later
|
fetch-depth: 0 # whole history and tags, can refine this later
|
||||||
persist-credentials: false # don’t leave the HTTPS token in origin
|
|
||||||
ssh-key: ${{ secrets.GIT_SSH_KEY }}
|
|
||||||
ssh-strict: false
|
|
||||||
|
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: https://github.com/actions/setup-node@v4
|
uses: https://github.com/actions/setup-node@v4
|
||||||
@ -79,8 +76,12 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
- name: Update deployment tag
|
- name: Update deployment tag
|
||||||
|
env:
|
||||||
|
GIT_HOST_NAME: ${{ secrets.GIT_HOST_NAME }}
|
||||||
|
GIT_REPO: ${{ secrets.GIT_REPO }}
|
||||||
run: | # todo this could cause a race condition
|
run: | # todo this could cause a race condition
|
||||||
git config user.name "CI"
|
git config user.name "CI Bot"
|
||||||
git config user.email "ci@dominikmilacher.com"
|
git config user.email "ci@dominikmilacher.com"
|
||||||
git tag -f last-deploy HEAD
|
git tag -f last-deploy HEAD
|
||||||
|
git remote set-url origin git@"GIT_HOST_NAME":"GIT_REPO".git
|
||||||
git push origin last-deploy --force
|
git push origin last-deploy --force
|
||||||
Loading…
x
Reference in New Issue
Block a user