build: update content-update branch on push to main
This commit is contained in:
parent
893b80d262
commit
d5fc079466
1 changed files with 19 additions and 0 deletions
|
|
@ -44,3 +44,22 @@ jobs:
|
|||
ssh_key: '${{ secrets.DOCKER_SWARM_SSH_KEY }}'
|
||||
file: 'docker-stack.yaml'
|
||||
name: 'personal-page'
|
||||
|
||||
rebase:
|
||||
runs-on: ubuntu-latest
|
||||
needs: deploy
|
||||
if: success()
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
|
||||
- name: Update branch
|
||||
run: |
|
||||
set -x
|
||||
git config --global user.name "robo"
|
||||
git config --global user.email "robo@alecodes.page"
|
||||
git checkout content-update
|
||||
git rebase origin/main
|
||||
git push origin content-update --force-with-lease
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue