build: update content-update branch on push to main
Some checks failed
Publish image / create-docker-images (push) Successful in 38s
Publish image / deploy (push) Successful in 7s
Publish image / rebase (push) Failing after 6s

This commit is contained in:
Alexander Navarro 2024-12-09 13:58:26 -03:00
parent 893b80d262
commit f261a4a6fc

View file

@ -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 }}