-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.56 KB
/
Copy pathcreate-label.yml
File metadata and controls
58 lines (51 loc) · 1.56 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: create-label
on:
create:
ref_type: branch
env:
EXTRA_PATH: ./extras/labels/
jobs:
build:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: 📦 INSTALANDO NODEJS LTS
uses: ./.github/actions/setup-node
- name: ✏️ CONFIGURACIONES PARA FIRMAR COMMITS
uses: ./.github/actions/git-config
with:
username: ${{ secrets.USER }}
email: ${{ secrets.EMAIL }}
- name: 🔖 CREANDO ETIQUETAS
uses: ./.github/actions/set-labels
with:
directorio: ${{ env.EXTRA_PATH }}
token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ github.repository_owner }}
repo: ${{ github.repository }}
defaultBranch: main
- name: 🌿 CREANDO RAMA DEVELOP
uses: ./.github/actions/set-branch
with:
defaultBranch: main
newBranch: develop
- name: 🌿 CREANDO RAMA BETA
uses: ./.github/actions/set-branch
with:
defaultBranch: main
newBranch: beta
- name: ⚓ CARGANDO RAMA POR DEFECTO
uses: ./.github/actions/set-default-branch
with:
defaultBranch: develop
token: ${{ secrets.MY_TOKEN }}
repo: ${{ github.repository }}
- name: 🗑 BORRANDO RAMA INICIAL
uses: ./.github/actions/set-delete-branch
with:
branchToDelete: init
baseBranch: develop