Skip to content

Commit e7999e3

Browse files
release(v1): release first version
1 parent 1b95f1b commit e7999e3

File tree

452 files changed

+122360
-22
lines changed

Some content is hidden

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

452 files changed

+122360
-22
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v1
13-
1413
- run: npm ci
1514
- run: npm run build
1615
- run: npm test
1716
- uses: ./
18-
with:
19-
milliseconds: 1000
17+
with:
18+
skipOnCommitMsg: "Skip CI"

.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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
1616
};
1717
Object.defineProperty(exports, "__esModule", { value: true });
1818
const core = __importStar(require("@actions/core"));
19-
const wait_1 = require("./wait");
19+
const git = __importStar(require("@actions/github"));
20+
const INPUT = 'skipOnCommitMsg';
2021
function run() {
2122
return __awaiter(this, void 0, void 0, function* () {
2223
try {
23-
const ms = core.getInput('milliseconds');
24-
console.log(`Waiting ${ms} milliseconds ...`);
25-
core.debug((new Date()).toTimeString());
26-
wait_1.wait(parseInt(ms));
27-
core.debug((new Date()).toTimeString());
28-
core.setOutput('time', new Date().toTimeString());
24+
const skipOnCommitMsg = core.getInput(INPUT);
25+
// git.GitHub.
26+
core.debug(JSON.stringify(git.context));
27+
console.log(`skip CI on commit message ${skipOnCommitMsg}`);
28+
core.setFailed('skip CI');
2929
}
3030
catch (error) {
3131
core.setFailed(error.message);

lib/wait.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

node_modules/.bin/which

Lines changed: 1 addition & 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: 7 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/README.md

Lines changed: 81 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/lib/command.d.ts

Lines changed: 16 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/lib/command.js

Lines changed: 66 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/lib/command.js.map

Lines changed: 1 addition & 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)