-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathaction.yml
88 lines (78 loc) · 2.07 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
name: Conventional commit cocogitto action
description: |
Check conventional commits compliance and/or automatically release new version
branding:
icon: git-commit
color: red
author: Paul Delafosse
inputs:
release:
description: Perform a release with cog bump --auto
required: false
default: 'false'
check:
description: Perform a conventional commit check with cog --check
required: false
default: 'true'
check-latest-tag-only:
description: Check commit history from latest tag to HEAD
required: false
default: 'false'
git-user:
description: Git user.name configuration
required: false
default: 'cog-bot'
git-user-email:
description: Git user.email configuration
required: false
default: 'cog@demo.org'
verify:
description: |-
Check an arbitrary input string against the conventional
commit specification but do not create any commit.
required: false
default: 'false'
dry-run:
description: Perform a release dry run
required: false
default: 'false'
profile:
description: Specify the bump profil to use for release
required: false
default: ''
package:
description: Specify which package to use for release
required: false
default: ''
outputs:
version:
description: Version released
value: ${{ steps.cog.outputs.version }}
runs:
using: composite
steps:
- run: echo Installing cocogitto
shell: bash
- id: install
run: ${{ github.action_path }}/install.sh
shell: bash
- run: echo Running cocogitto
shell: bash
- id: add-to-path
shell: sh
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
- id: cog
shell: bash
run: |
${{ github.action_path }}/cog.sh \
"${{ inputs.check }}" \
"${{ inputs.check-latest-tag-only }}" \
"${{ inputs.release }}" \
"${{ inputs.git-user }}" \
"${{ inputs.git-user-email }}" \
"${{ inputs.verify }}" \
"${{ inputs.dry-run }}" \
"${{ inputs.package }}" \
"${{ inputs.profile }}"