Skip to content

Commit bf70de0

Browse files
chore(deps): push node_modules
1 parent 9ae667a commit bf70de0

340 files changed

Lines changed: 76382 additions & 22 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
- uses: actions/checkout@v1
1313
- run: npm ci
1414
- run: npm run build
15-
- run: npm test
1615
- uses: ./
1716
with:
1817
skipOnCommitMsg: "sample"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
__tests__/runner/*
22

33
# comment out in distribution branches
4-
node_modules/
4+
#node_modules/
55

66
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
77
# Logs

lib/main.js

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,42 @@
11
"use strict";
2-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3-
return new (P || (P = Promise))(function (resolve, reject) {
4-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
7-
step((generator = generator.apply(thisArg, _arguments || [])).next());
8-
});
9-
};
2+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3+
if (k2 === undefined) k2 = k;
4+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5+
}) : (function(o, m, k, k2) {
6+
if (k2 === undefined) k2 = k;
7+
o[k2] = m[k];
8+
}));
9+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10+
Object.defineProperty(o, "default", { enumerable: true, value: v });
11+
}) : function(o, v) {
12+
o["default"] = v;
13+
});
1014
var __importStar = (this && this.__importStar) || function (mod) {
1115
if (mod && mod.__esModule) return mod;
1216
var result = {};
13-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
14-
result["default"] = mod;
17+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18+
__setModuleDefault(result, mod);
1519
return result;
1620
};
1721
Object.defineProperty(exports, "__esModule", { value: true });
1822
const core = __importStar(require("@actions/core"));
1923
const git = __importStar(require("@actions/github"));
2024
const INPUT = 'skipOnCommitMsg';
21-
function run() {
22-
return __awaiter(this, void 0, void 0, function* () {
23-
try {
24-
core.debug('start working');
25-
const skipOnCommitMsg = core.getInput(INPUT);
26-
console.log(`skip CI on commit message ${skipOnCommitMsg}`);
27-
core.debug(JSON.stringify(git.context));
28-
core.setFailed('skip CI');
25+
async function run() {
26+
try {
27+
core.debug('start working');
28+
const skipOnCommitMsg = core.getInput(INPUT);
29+
console.log(`skip CI on commit message ${skipOnCommitMsg}`);
30+
const commitMessage = git.context.payload.head_commit.message;
31+
console.log('commit message', commitMessage);
32+
if (commitMessage.includes(skipOnCommitMsg)) {
33+
core.setFailed(`stopping here, because the commit message contains the provided input <${skipOnCommitMsg}>`);
2934
}
30-
catch (error) {
35+
}
36+
catch (error) {
37+
if (error instanceof Error) {
3138
core.setFailed(error.message);
3239
}
33-
});
40+
}
3441
}
3542
run();

node_modules/.package-lock.json

Lines changed: 210 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/core/LICENSE.md

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)