From 6a691a6606ed9c29fe574995c90041094801e615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fork=CE=A8KILLET?= Date: Mon, 19 Jul 2021 17:51:34 +0800 Subject: [PATCH] VER 2.3.1 ^@ fk-git-commit-msg-std : `runs` <- `jobs`. --- action.yml | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/action.yml b/action.yml index c28abb7..1e1daa6 100644 --- a/action.yml +++ b/action.yml @@ -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