-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
32 lines (32 loc) · 1.1 KB
/
action.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: 'Init Config Files'
description: 'GitHub Action que crea archivos de configuración inicial si no existen'
inputs:
TOKEN:
description: 'Token para hacer commit y push. Se recomienda usar el GITHUB_TOKEN de GitHub'
required: true
BRANCH:
description: 'Nombre de la rama a la que se hará push. Si no se especifica, se usará la rama actual del workflow.'
required: true
runs:
using: "composite"
steps:
- name: Crear archivos de configuración
env:
VAR_TOKEN: ${{ inputs.TOKEN }}
VAR_BRANCH: ${{ inputs.BRANCH }}
shell: bash
run: ${{ github.action_path }}/scripts/create_md_files.sh
- name: Setup Node.js
env:
GH_TOKEN: ${{ inputs.TOKEN }}
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install Semantic-Release
env:
VAR_NAME_REPOSITORY: ${{ github.repository }}
VAR_LOCAL_PATH: ${{ github.action_path }}
VAR_TOKEN: ${{ inputs.TOKEN }}
VAR_BRANCH: ${{ inputs.BRANCH }}
run: ${{ github.action_path }}/scripts/install_semantic_release.sh
shell: bash