-
Notifications
You must be signed in to change notification settings - Fork 4.2k
32 lines (31 loc) · 1.08 KB
/
update-pull-request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Actualización del repo oficial sobre la customización
on:
pull_request:
types:
- opened
branches:
- 'release/**'
- 'action/**'
env:
kube_dash_url: https://github.com/kubernetes/dashboard
jobs:
actualizar-sobre-ultimo-repo:
name: update
runs-on: ubuntu-latest
steps:
- name: Clonar última versión del repo oficial
uses: actions/checkout@v4
- 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 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 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