37 lines
842 B
YAML
37 lines
842 B
YAML
name: 'Auto changie'
|
|
description: 'Changie action with auto numbering'
|
|
branding:
|
|
icon: file-plus
|
|
color: purple
|
|
inputs:
|
|
changie-version:
|
|
description: 'Changie version'
|
|
default: 'latest'
|
|
required: false
|
|
node-version:
|
|
description: 'Node version use to setup changie'
|
|
default: '20'
|
|
required: false
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4.1.0
|
|
with:
|
|
node-version: ${{ inputs.node-version }}
|
|
|
|
- name: Install changie
|
|
run: npm i -g changie@${{ inputs.changie-version }}
|
|
shell: bash
|
|
|
|
- name: Set GitHub Path
|
|
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
|
|
shell: bash
|
|
env:
|
|
GITHUB_ACTION_PATH: ${{ github.action_path }}
|
|
|
|
- name: Update changelog with last commit
|
|
run: script.sh
|
|
shell: bash
|
|
|