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

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

View file

@ -44,3 +44,30 @@ 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: Configure Git
run: |
git config --global user.name "robo"
git config --global user.email "robo@alecodes.page"
- name: Rebase main into content-update
run: |
git remote add origin ${{ env.GITHUB_SERVER_URL }}/${{ env.GITHUB_REPOSITORY }}.git
git fetch origin
git rebase origin/content-update
- name: Push changes
run: |
git push origin content-update --force-with-lease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}