2024-02-25 20:09:18 +00:00
|
|
|
name: 'Auto changie'
|
|
|
|
description: 'Changie action with auto numbering'
|
2024-02-25 21:45:50 +00:00
|
|
|
branding:
|
|
|
|
icon: file-plus
|
|
|
|
color: purple
|
2024-02-25 20:09:18 +00:00
|
|
|
inputs:
|
|
|
|
changie-version:
|
|
|
|
description: 'Changie version'
|
|
|
|
default: 'latest'
|
|
|
|
required: false
|
2024-02-25 21:12:00 +00:00
|
|
|
node-version:
|
|
|
|
description: 'Node version use to setup changie'
|
|
|
|
default: '20'
|
|
|
|
required: false
|
2024-02-25 20:09:18 +00:00
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Setup node
|
2024-11-22 21:18:10 +00:00
|
|
|
uses: actions/setup-node@v4.1.0
|
2024-02-25 20:09:18 +00:00
|
|
|
with:
|
2024-02-25 21:12:00 +00:00
|
|
|
node-version: ${{ inputs.node-version }}
|
2024-02-25 20:09:18 +00:00
|
|
|
|
|
|
|
- name: Install changie
|
2024-02-25 20:20:15 +00:00
|
|
|
run: npm i -g changie@${{ inputs.changie-version }}
|
2024-02-25 20:09:18 +00:00
|
|
|
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
|
|
|
|
|