Skip to content

Commit

Permalink
VER 2.2.0
Browse files Browse the repository at this point in the history
^@ fk-git-commit-msg-std
 : Now use commit ids from `input`.
  • Loading branch information
ForkKILLET committed Jul 19, 2021
1 parent 7da7a01 commit ab92150
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
---

name: fk-git-commit-msg-std
on: [push, pull_request]
description: 'Check if git commit messages meet ForkKILLET standard.'
author: ForkKILLET
inputs:
commit_id:
description: 'Which commit(s) to check.'
require: true

on: [ push, pull_request ]
jobs:
check:
name: Check new commit msg
Expand All @@ -18,7 +25,7 @@ jobs:
run: |
node << 'CODE'
const { S, I } = require("fk-git-commit-msg-std/check.js")
const M = ${{ toJson(github.event.commits.*.message) }}
const M = process.env.INPUT_COMMIT_ID
const F = I(M, A)
process.exit(F)
CODE
Expand Down

0 comments on commit ab92150

Please sign in to comment.