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 <[email protected]>
  • Loading branch information
JhoanAlvear authored Apr 26, 2024
1 parent 88369d6 commit a238e43
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/update-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Actualización del repo oficial sobre la customización
on:
pull_request:
types:
- opened
branches:
- 'release/*'
- 'release/**'
- 'action/**'
env:
kube_dash_url: https://github.com/kubernetes/dashboard

jobs:
actualizar-sobre-ultimo-repo:
name: update
Expand All @@ -16,11 +18,8 @@ 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 ${{ github.head_ref }}
run: git fetch kube-dash "refs/pull/${{ github.event.pull_request.number }}/head"
- name: Actualizar rama local
run: git merge kube-dash/${GITHUB_REF}
- name: Empujar cambios a la rama
run: git push origin ${GITHUB_REF}



0 comments on commit a238e43

Please sign in to comment.