Skip to content

Commit 25a0b99

Browse files
committed
feat(action): add github actions yaml
1 parent 3926b43 commit 25a0b99

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

action.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
name: 'Go commit linter'
2-
description: 'Inspect commit messages with the format "<type>(scope): <subject>".'
3-
inputs:
4-
message: # id of input
5-
description: 'commit message or pull request messaeg'
6-
required: true
7-
default: 'World'
8-
outputs:
9-
time: # id of output
10-
description: 'The time we greeted you'
1+
name: 'Go pull request message linter'
2+
description: 'Inspect pull request messages with the format "<type>(scope): <subject>".'
113
runs:
12-
using: 'node16'
13-
main: 'index.js'
4+
using: 'composite'
5+
steps:
6+
- run: |
7+
curl -Lo go-commitlinter.tar.gz https://github.com/masahiro331/go-commitlinter/releases/download/0.0.2/go-commitlinter_0.0.2_Linux_x86_64.tar.gz
8+
tar xvfz go-commitlinter.tar.gz
9+
mv go-commitlinter /usr/local/bin/
10+
shell: bash
11+
- run: gh pr view $PR | head -n 1 | cut -f 2 | go-commitlinter
12+
shell: bash

0 commit comments

Comments
 (0)