Skip to content

Commit

Permalink
Update update-pull-request.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Jhoan <jhoan2929@gmail.com>
  • Loading branch information
JhoanAlvear committed Apr 26, 2024
1 parent 2c25784 commit 5ffd3e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/update-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ jobs:
- name: Agregar remoto del repo oficial
run: git remote add kube-dash ${{ env.kube_dash_url }}
- name: Obtener cambios del repo oficial
run: git fetch kube-dash "refs/heads/${{ github.event.pull_request.base.ref }}"
run: git fetch kube-dash master
- name: Configurar identidad de usuario de Git
run: |
git config --global user.email "${{ github.event.pull_request.user.email }}"
git config --global user.name "${{ github.event.pull_request.user.login }}"
- name: Actualizar rama local
run: git merge FETCH_HEAD --allow-unrelated-histories
- name: Actualizar rama local desde el repositorio oficial
run:|
git checkout master
git merge FETCH_HEAD --allow-unrelated-histories
- name: Empujar cambios a la rama
run: git push origin HEAD

0 comments on commit 5ffd3e1

Please sign in to comment.