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