Skip to content

Commit

Permalink
VER 2.3.1
Browse files Browse the repository at this point in the history
^@ fk-git-commit-msg-std
 : `runs` <- `jobs`.
  • Loading branch information
ForkKILLET committed Jul 19, 2021
1 parent b1767c4 commit 6a691a6
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,23 @@ inputs:
description: 'Commit messages(s) to check.'
require: true

on: [ push, pull_request ]
jobs:
check:
name: Check new commit msg
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
- name: install fk-git-commit-msg-std
run: |
yarn add -D fk-git-commit-msg-std
- name: run check
run: |
node << 'CODE'
const { S, I } = require("fk-git-commit-msg-std/check.js")
const A = require(".gitmsgrc.js")
const M = JSON.parse(process.env.INPUT_MSGS)
const F = I(M, A)
process.exit(F)
CODE
runs:
using: node16
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
- name: install fk-git-commit-msg-std
run: |
yarn add -D fk-git-commit-msg-std
- name: run check
run: |
node << 'CODE'
const { S, I } = require("fk-git-commit-msg-std/check.js")
const A = require(".gitmsgrc.js")
const M = JSON.parse(process.env.INPUT_MSGS)
const F = I(M, A)
process.exit(F)
CODE

0 comments on commit 6a691a6

Please sign in to comment.