-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
34 lines (32 loc) · 1.05 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
33
34
name: "Create a release using molting"
description: "Bump your project files, create a new changelog entry and generate a release"
branding:
icon: "package"
color: "green"
inputs:
project-dir:
description: "Location of your project, if checked out to a different directory"
required: false
default: ${{ github.workspace }}
version:
description: "The type of semver release to make, one of `patch`, `minor` or `major`. Default: will attempt to auto-detect"
required: false
default: ""
log-level:
description: "Log level to use. Default: `warning`"
required: false
default: "warning"
runs:
using: "composite"
steps:
- id: install-molting
run: pip3 install molting
shell: bash
- id: configure-git
shell: bash
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- id: create-release
run: molting ${{ inputs.version }} --project-dir ${{ inputs.project-dir }} --log ${{ inputs.log-level }}
shell: bash