Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f3d75c010 | ||
|
|
718926c776 | ||
|
|
21129c90a8 | ||
|
|
61d3055e77 | ||
|
|
4c44f1682f | ||
|
|
ead4715425 | ||
|
|
ceb331236f | ||
|
|
efb5140d5b | ||
|
|
675e60a9d3 | ||
|
|
eda31c222d | ||
|
|
85bb6c2ad2 | ||
|
|
ecd72cb678 | ||
|
|
56c654ac50 | ||
|
|
d8676bfa36 | ||
|
|
bce25f7840 | ||
|
|
32a0c2d240 | ||
|
|
fda37b8b20 |
22
.github/actions/test-action/action.yml
vendored
22
.github/actions/test-action/action.yml
vendored
@@ -1,22 +0,0 @@
|
|||||||
name: 'dotcover-report'
|
|
||||||
description: 'Reports dotCover output.'
|
|
||||||
inputs:
|
|
||||||
name:
|
|
||||||
description: "The name of the check run."
|
|
||||||
required: true
|
|
||||||
default: 'Test Coverage'
|
|
||||||
path:
|
|
||||||
description: "The path where the test coverage output has been produced."
|
|
||||||
required: true
|
|
||||||
default: ''
|
|
||||||
version:
|
|
||||||
description: "The client version."
|
|
||||||
required: false
|
|
||||||
default: '0.0.0-preview.0'
|
|
||||||
token:
|
|
||||||
description: GitHub Access Token
|
|
||||||
required: false
|
|
||||||
default: ${{ github.token }}
|
|
||||||
runs:
|
|
||||||
using: 'node12'
|
|
||||||
main: 'dist/index.js'
|
|
||||||
6326
.github/actions/test-action/dist/index.js
vendored
6326
.github/actions/test-action/dist/index.js
vendored
File diff suppressed because one or more lines are too long
42
.github/actions/test-action/index.js
vendored
42
.github/actions/test-action/index.js
vendored
@@ -1,42 +0,0 @@
|
|||||||
const core = require('@actions/core');
|
|
||||||
const github = require('@actions/github');
|
|
||||||
const fs = require('fs').promises;
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
|
|
||||||
try {
|
|
||||||
|
|
||||||
core.info('Begin');
|
|
||||||
|
|
||||||
// get inputs
|
|
||||||
const token = core.getInput('token', { required: true });
|
|
||||||
const name = core.getInput('name', { required: true });
|
|
||||||
const path = core.getInput('path', { required: true });
|
|
||||||
const version = core.getInput('version', { required: false });
|
|
||||||
|
|
||||||
// get the REST api
|
|
||||||
const octokit = github.getOctokit(token);
|
|
||||||
const rest = octokit.rest;
|
|
||||||
|
|
||||||
// get the context, the workflow, etc.
|
|
||||||
const context = github.context;
|
|
||||||
const workflow = context.workflow;
|
|
||||||
const repository = context.payload.repository;
|
|
||||||
|
|
||||||
core.info('Running!');
|
|
||||||
core.info('Completed.');
|
|
||||||
}
|
|
||||||
catch (error) {
|
|
||||||
core.setFailed(error.message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const getSha = (context) => {
|
|
||||||
if (context.eventName === "pull_request") {
|
|
||||||
return context.payload.pull_request.head.sha || context.payload.after;
|
|
||||||
} else {
|
|
||||||
return context.sha;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
run();
|
|
||||||
357
.github/actions/test-action/package-lock.json
generated
vendored
357
.github/actions/test-action/package-lock.json
generated
vendored
@@ -1,357 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "test-action",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"lockfileVersion": 2,
|
|
||||||
"requires": true,
|
|
||||||
"packages": {
|
|
||||||
"": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"@actions/core": "^1.4.0",
|
|
||||||
"@actions/github": "^5.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@actions/core": {
|
|
||||||
"version": "1.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.4.0.tgz",
|
|
||||||
"integrity": "sha512-CGx2ilGq5i7zSLgiiGUtBCxhRRxibJYU6Fim0Q1Wg2aQL2LTnF27zbqZOrxfvFQ55eSBW0L8uVStgtKMpa0Qlg=="
|
|
||||||
},
|
|
||||||
"node_modules/@actions/github": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@actions/github/-/github-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-QvE9eAAfEsS+yOOk0cylLBIO/d6WyWIOvsxxzdrPFaud39G6BOkUwScXZn1iBzQzHyu9SBkkLSWlohDWdsasAQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"@actions/http-client": "^1.0.11",
|
|
||||||
"@octokit/core": "^3.4.0",
|
|
||||||
"@octokit/plugin-paginate-rest": "^2.13.3",
|
|
||||||
"@octokit/plugin-rest-endpoint-methods": "^5.1.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@actions/http-client": {
|
|
||||||
"version": "1.0.11",
|
|
||||||
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz",
|
|
||||||
"integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==",
|
|
||||||
"dependencies": {
|
|
||||||
"tunnel": "0.0.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@octokit/auth-token": {
|
|
||||||
"version": "2.4.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz",
|
|
||||||
"integrity": "sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==",
|
|
||||||
"dependencies": {
|
|
||||||
"@octokit/types": "^6.0.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@octokit/core": {
|
|
||||||
"version": "3.5.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.5.1.tgz",
|
|
||||||
"integrity": "sha512-omncwpLVxMP+GLpLPgeGJBF6IWJFjXDS5flY5VbppePYX9XehevbDykRH9PdCdvqt9TS5AOTiDide7h0qrkHjw==",
|
|
||||||
"dependencies": {
|
|
||||||
"@octokit/auth-token": "^2.4.4",
|
|
||||||
"@octokit/graphql": "^4.5.8",
|
|
||||||
"@octokit/request": "^5.6.0",
|
|
||||||
"@octokit/request-error": "^2.0.5",
|
|
||||||
"@octokit/types": "^6.0.3",
|
|
||||||
"before-after-hook": "^2.2.0",
|
|
||||||
"universal-user-agent": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@octokit/endpoint": {
|
|
||||||
"version": "6.0.12",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz",
|
|
||||||
"integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==",
|
|
||||||
"dependencies": {
|
|
||||||
"@octokit/types": "^6.0.3",
|
|
||||||
"is-plain-object": "^5.0.0",
|
|
||||||
"universal-user-agent": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@octokit/graphql": {
|
|
||||||
"version": "4.6.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.4.tgz",
|
|
||||||
"integrity": "sha512-SWTdXsVheRmlotWNjKzPOb6Js6tjSqA2a8z9+glDJng0Aqjzti8MEWOtuT8ZSu6wHnci7LZNuarE87+WJBG4vg==",
|
|
||||||
"dependencies": {
|
|
||||||
"@octokit/request": "^5.6.0",
|
|
||||||
"@octokit/types": "^6.0.3",
|
|
||||||
"universal-user-agent": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@octokit/openapi-types": {
|
|
||||||
"version": "7.3.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.3.2.tgz",
|
|
||||||
"integrity": "sha512-oJhK/yhl9Gt430OrZOzAl2wJqR0No9445vmZ9Ey8GjUZUpwuu/vmEFP0TDhDXdpGDoxD6/EIFHJEcY8nHXpDTA=="
|
|
||||||
},
|
|
||||||
"node_modules/@octokit/plugin-paginate-rest": {
|
|
||||||
"version": "2.13.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.13.5.tgz",
|
|
||||||
"integrity": "sha512-3WSAKBLa1RaR/7GG+LQR/tAZ9fp9H9waE9aPXallidyci9oZsfgsLn5M836d3LuDC6Fcym+2idRTBpssHZePVg==",
|
|
||||||
"dependencies": {
|
|
||||||
"@octokit/types": "^6.13.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@octokit/core": ">=2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@octokit/plugin-rest-endpoint-methods": {
|
|
||||||
"version": "5.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.3.1.tgz",
|
|
||||||
"integrity": "sha512-3B2iguGmkh6bQQaVOtCsS0gixrz8Lg0v4JuXPqBcFqLKuJtxAUf3K88RxMEf/naDOI73spD+goJ/o7Ie7Cvdjg==",
|
|
||||||
"dependencies": {
|
|
||||||
"@octokit/types": "^6.16.2",
|
|
||||||
"deprecation": "^2.3.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@octokit/core": ">=3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@octokit/request": {
|
|
||||||
"version": "5.6.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.0.tgz",
|
|
||||||
"integrity": "sha512-4cPp/N+NqmaGQwbh3vUsYqokQIzt7VjsgTYVXiwpUP2pxd5YiZB2XuTedbb0SPtv9XS7nzAKjAuQxmY8/aZkiA==",
|
|
||||||
"dependencies": {
|
|
||||||
"@octokit/endpoint": "^6.0.1",
|
|
||||||
"@octokit/request-error": "^2.1.0",
|
|
||||||
"@octokit/types": "^6.16.1",
|
|
||||||
"is-plain-object": "^5.0.0",
|
|
||||||
"node-fetch": "^2.6.1",
|
|
||||||
"universal-user-agent": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@octokit/request-error": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==",
|
|
||||||
"dependencies": {
|
|
||||||
"@octokit/types": "^6.0.3",
|
|
||||||
"deprecation": "^2.0.0",
|
|
||||||
"once": "^1.4.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@octokit/types": {
|
|
||||||
"version": "6.16.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.16.4.tgz",
|
|
||||||
"integrity": "sha512-UxhWCdSzloULfUyamfOg4dJxV9B+XjgrIZscI0VCbp4eNrjmorGEw+4qdwcpTsu6DIrm9tQsFQS2pK5QkqQ04A==",
|
|
||||||
"dependencies": {
|
|
||||||
"@octokit/openapi-types": "^7.3.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/before-after-hook": {
|
|
||||||
"version": "2.2.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.2.tgz",
|
|
||||||
"integrity": "sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ=="
|
|
||||||
},
|
|
||||||
"node_modules/deprecation": {
|
|
||||||
"version": "2.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
|
|
||||||
"integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ=="
|
|
||||||
},
|
|
||||||
"node_modules/is-plain-object": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/node-fetch": {
|
|
||||||
"version": "2.6.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
|
|
||||||
"integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==",
|
|
||||||
"engines": {
|
|
||||||
"node": "4.x || >=6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/once": {
|
|
||||||
"version": "1.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
|
||||||
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
|
||||||
"dependencies": {
|
|
||||||
"wrappy": "1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/tunnel": {
|
|
||||||
"version": "0.0.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
|
|
||||||
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/universal-user-agent": {
|
|
||||||
"version": "6.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz",
|
|
||||||
"integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w=="
|
|
||||||
},
|
|
||||||
"node_modules/wrappy": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
|
||||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@actions/core": {
|
|
||||||
"version": "1.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.4.0.tgz",
|
|
||||||
"integrity": "sha512-CGx2ilGq5i7zSLgiiGUtBCxhRRxibJYU6Fim0Q1Wg2aQL2LTnF27zbqZOrxfvFQ55eSBW0L8uVStgtKMpa0Qlg=="
|
|
||||||
},
|
|
||||||
"@actions/github": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@actions/github/-/github-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-QvE9eAAfEsS+yOOk0cylLBIO/d6WyWIOvsxxzdrPFaud39G6BOkUwScXZn1iBzQzHyu9SBkkLSWlohDWdsasAQ==",
|
|
||||||
"requires": {
|
|
||||||
"@actions/http-client": "^1.0.11",
|
|
||||||
"@octokit/core": "^3.4.0",
|
|
||||||
"@octokit/plugin-paginate-rest": "^2.13.3",
|
|
||||||
"@octokit/plugin-rest-endpoint-methods": "^5.1.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@actions/http-client": {
|
|
||||||
"version": "1.0.11",
|
|
||||||
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz",
|
|
||||||
"integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==",
|
|
||||||
"requires": {
|
|
||||||
"tunnel": "0.0.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@octokit/auth-token": {
|
|
||||||
"version": "2.4.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz",
|
|
||||||
"integrity": "sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==",
|
|
||||||
"requires": {
|
|
||||||
"@octokit/types": "^6.0.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@octokit/core": {
|
|
||||||
"version": "3.5.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.5.1.tgz",
|
|
||||||
"integrity": "sha512-omncwpLVxMP+GLpLPgeGJBF6IWJFjXDS5flY5VbppePYX9XehevbDykRH9PdCdvqt9TS5AOTiDide7h0qrkHjw==",
|
|
||||||
"requires": {
|
|
||||||
"@octokit/auth-token": "^2.4.4",
|
|
||||||
"@octokit/graphql": "^4.5.8",
|
|
||||||
"@octokit/request": "^5.6.0",
|
|
||||||
"@octokit/request-error": "^2.0.5",
|
|
||||||
"@octokit/types": "^6.0.3",
|
|
||||||
"before-after-hook": "^2.2.0",
|
|
||||||
"universal-user-agent": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@octokit/endpoint": {
|
|
||||||
"version": "6.0.12",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz",
|
|
||||||
"integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==",
|
|
||||||
"requires": {
|
|
||||||
"@octokit/types": "^6.0.3",
|
|
||||||
"is-plain-object": "^5.0.0",
|
|
||||||
"universal-user-agent": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@octokit/graphql": {
|
|
||||||
"version": "4.6.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.4.tgz",
|
|
||||||
"integrity": "sha512-SWTdXsVheRmlotWNjKzPOb6Js6tjSqA2a8z9+glDJng0Aqjzti8MEWOtuT8ZSu6wHnci7LZNuarE87+WJBG4vg==",
|
|
||||||
"requires": {
|
|
||||||
"@octokit/request": "^5.6.0",
|
|
||||||
"@octokit/types": "^6.0.3",
|
|
||||||
"universal-user-agent": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@octokit/openapi-types": {
|
|
||||||
"version": "7.3.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.3.2.tgz",
|
|
||||||
"integrity": "sha512-oJhK/yhl9Gt430OrZOzAl2wJqR0No9445vmZ9Ey8GjUZUpwuu/vmEFP0TDhDXdpGDoxD6/EIFHJEcY8nHXpDTA=="
|
|
||||||
},
|
|
||||||
"@octokit/plugin-paginate-rest": {
|
|
||||||
"version": "2.13.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.13.5.tgz",
|
|
||||||
"integrity": "sha512-3WSAKBLa1RaR/7GG+LQR/tAZ9fp9H9waE9aPXallidyci9oZsfgsLn5M836d3LuDC6Fcym+2idRTBpssHZePVg==",
|
|
||||||
"requires": {
|
|
||||||
"@octokit/types": "^6.13.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@octokit/plugin-rest-endpoint-methods": {
|
|
||||||
"version": "5.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.3.1.tgz",
|
|
||||||
"integrity": "sha512-3B2iguGmkh6bQQaVOtCsS0gixrz8Lg0v4JuXPqBcFqLKuJtxAUf3K88RxMEf/naDOI73spD+goJ/o7Ie7Cvdjg==",
|
|
||||||
"requires": {
|
|
||||||
"@octokit/types": "^6.16.2",
|
|
||||||
"deprecation": "^2.3.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@octokit/request": {
|
|
||||||
"version": "5.6.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.0.tgz",
|
|
||||||
"integrity": "sha512-4cPp/N+NqmaGQwbh3vUsYqokQIzt7VjsgTYVXiwpUP2pxd5YiZB2XuTedbb0SPtv9XS7nzAKjAuQxmY8/aZkiA==",
|
|
||||||
"requires": {
|
|
||||||
"@octokit/endpoint": "^6.0.1",
|
|
||||||
"@octokit/request-error": "^2.1.0",
|
|
||||||
"@octokit/types": "^6.16.1",
|
|
||||||
"is-plain-object": "^5.0.0",
|
|
||||||
"node-fetch": "^2.6.1",
|
|
||||||
"universal-user-agent": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@octokit/request-error": {
|
|
||||||
"version": "2.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz",
|
|
||||||
"integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==",
|
|
||||||
"requires": {
|
|
||||||
"@octokit/types": "^6.0.3",
|
|
||||||
"deprecation": "^2.0.0",
|
|
||||||
"once": "^1.4.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@octokit/types": {
|
|
||||||
"version": "6.16.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.16.4.tgz",
|
|
||||||
"integrity": "sha512-UxhWCdSzloULfUyamfOg4dJxV9B+XjgrIZscI0VCbp4eNrjmorGEw+4qdwcpTsu6DIrm9tQsFQS2pK5QkqQ04A==",
|
|
||||||
"requires": {
|
|
||||||
"@octokit/openapi-types": "^7.3.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"before-after-hook": {
|
|
||||||
"version": "2.2.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.2.tgz",
|
|
||||||
"integrity": "sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ=="
|
|
||||||
},
|
|
||||||
"deprecation": {
|
|
||||||
"version": "2.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
|
|
||||||
"integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ=="
|
|
||||||
},
|
|
||||||
"is-plain-object": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q=="
|
|
||||||
},
|
|
||||||
"node-fetch": {
|
|
||||||
"version": "2.6.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
|
|
||||||
"integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
|
|
||||||
},
|
|
||||||
"once": {
|
|
||||||
"version": "1.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
|
||||||
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
|
||||||
"requires": {
|
|
||||||
"wrappy": "1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tunnel": {
|
|
||||||
"version": "0.0.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
|
|
||||||
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
|
|
||||||
},
|
|
||||||
"universal-user-agent": {
|
|
||||||
"version": "6.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz",
|
|
||||||
"integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w=="
|
|
||||||
},
|
|
||||||
"wrappy": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
|
||||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
17
.github/actions/test-action/package.json
vendored
17
.github/actions/test-action/package.json
vendored
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "test-action",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"description": "",
|
|
||||||
"main": "index.js",
|
|
||||||
"scripts": {
|
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
|
||||||
"pack": "ncc build index.js -o dist"
|
|
||||||
},
|
|
||||||
"keywords": [],
|
|
||||||
"author": "",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"@actions/core": "^1.4.0",
|
|
||||||
"@actions/github": "^5.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
23
.github/workflows/build-pr.yml
vendored
23
.github/workflows/build-pr.yml
vendored
@@ -1,23 +0,0 @@
|
|||||||
#
|
|
||||||
# Workflow: Build PR
|
|
||||||
#
|
|
||||||
|
|
||||||
name: Build PR
|
|
||||||
on: pull_request
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build-pr:
|
|
||||||
|
|
||||||
name: "Build PR #${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }}"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: Step 1
|
|
||||||
shell: bash
|
|
||||||
run: echo "step 1 of \#${{ github.event.pull_request.number }}"
|
|
||||||
|
|
||||||
- name: Step 2
|
|
||||||
shell: bash
|
|
||||||
run: echo "step 2 of \#${{ github.event.pull_request.number }}"
|
|
||||||
76
.github/workflows/exp.yml
vendored
76
.github/workflows/exp.yml
vendored
@@ -12,14 +12,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Experiment
|
- name: Experiment
|
||||||
uses: zpqrtbnk/gh-actions/experiment@master
|
uses: zpqrtbnk/gh-actions/experiment@master
|
||||||
with:
|
|
||||||
mode: woot
|
|
||||||
|
|
||||||
- name: Script
|
|
||||||
uses: zpqrtbnk/gh-actions/jsaction@master
|
|
||||||
with:
|
|
||||||
githubToken: ${{ github.token }}
|
|
||||||
text: zoot
|
|
||||||
|
|
||||||
- name: Infos
|
- name: Infos
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -31,10 +23,66 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
fetch-depth: 2 # get parent
|
||||||
|
|
||||||
- name: Embedded
|
- name: Report
|
||||||
uses: ./.github/actions/test-action
|
shell: bash
|
||||||
with:
|
run: |
|
||||||
name: NAME
|
set +e
|
||||||
path: PATH
|
git log --graph --pretty=format':%h%%d %s %an, %ar' | head -n 5
|
||||||
version: VERSION
|
echo "--"
|
||||||
|
REF="${{ github.ref }}"
|
||||||
|
BRANCH=${REF#refs/heads/}
|
||||||
|
|
||||||
|
if [ "$BRANCH" != "$REF" ]; then
|
||||||
|
VERSION=${BRANCH#release/}
|
||||||
|
if [ "$VERSION" != "$BRANCH" ]; then
|
||||||
|
echo "Triggered by commit in version $VERSION release branch $BRANCH"
|
||||||
|
git fetch origin refs/tags/v$VERSION:refs/tags/v$VERSION
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Tag v$VERSION does not exist"
|
||||||
|
else
|
||||||
|
TAGSHA=$(git rev-parse v$VERSION)
|
||||||
|
echo "FOUND TAG $TAGSHA"
|
||||||
|
if [ "$TAGSHA" != "${{ github.sha }}" ]; then
|
||||||
|
echo "::error::TAG v$VERSION exists on another commit (${{ github.sha }}) : error"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Tag v$VERSION exists on this commit: nothing to do here"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "::error::Triggered by commit in non-release branch $BRANCH: error"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
HZTAG=${REF#refs/tags/}
|
||||||
|
if [ "$HZTAG" != "$REF" ]; then
|
||||||
|
HZVERSION=${HZTAG#v}
|
||||||
|
if [ "$HZVERSION" != "$HZTAG" ]; then # it is a version tag
|
||||||
|
echo "Triggered by version tag $HZTAG"
|
||||||
|
git fetch origin refs/heads/release/$HZVERSION:refs/heads/release/$HZVERSION
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "::error::Branch release/$HZVERSION does not exist"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
HZBRANCHSHA=$(git rev-parse release/$HZVERSION)
|
||||||
|
HZPARENTSHA=$(git rev-parse $HZTAG^1)
|
||||||
|
if [ "$HZBRANCHSHA" != "$HZPARENTSHA" ]; then
|
||||||
|
echo "::error::Tag parent is not HEAD of release/$HZVERSION but $HZPARENTSHA"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Tag parent is HEAD of release/$HZVERSION, proceed"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "::error::Triggered by non-version tag $HZTAG"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "::error::I am confused"
|
||||||
|
exit 1
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +0,0 @@
|
|||||||
node_modules/
|
|
||||||
30
README.md
30
README.md
@@ -1,21 +1,27 @@
|
|||||||
# test-repo
|
test-repo
|
||||||
|
=========
|
||||||
|
|
||||||
A Git(Hub) Test Repository
|
Test Repository
|
||||||
|
|
||||||
`git clone https://github.com/zpqrtbnk/test-repo.git .`
|
`git clone https://github.com/zpqrtbnk/test-repo.git .`
|
||||||
|
|
||||||
We have pages at: http://zpqrtbnk.github.io/test-repo/
|
We have pages at : http://zpqrtbnk.github.io/test-repo/
|
||||||
|
|
||||||
We have an image in the README
|
Edit the file
|
||||||
|
Add an image
|
||||||
|
Can't get a newline? Must add two spaces
|
||||||
|
|
||||||
|
Include
|
||||||

|

|
||||||
|
|
||||||
|
But I don't know how to float the image left or right, nor how to center it, nor how to size
|
||||||
|
it so it's very basic anyway...
|
||||||
|
|
||||||
|
|
||||||
|
`git add`
|
||||||
|
`git push origin master`
|
||||||
|
`git pull`
|
||||||
|
`git checkout`
|
||||||
|
|
||||||
etc
|
etc
|
||||||
etc
|
etc
|
||||||
|
|
||||||
<img src="./wtf.jpg" />
|
|
||||||
|
|
||||||
<p align="center" style="background:#000;padding:5px;color:#fff;font-size:150%;margin-bottom:64px">
|
|
||||||
<img src="./wtf.jpg" />
|
|
||||||
<span style="margin-left:48px;">wubble</span>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|||||||
5
index.md
Normal file
5
index.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Index!
|
||||||
|
|
||||||
|
some *more* random stuff to test pages
|
||||||
|
|
||||||
|
A test pr!
|
||||||
4
rigolo.txt
Normal file
4
rigolo.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
premier
|
||||||
|
|
||||||
|
deuxieme
|
||||||
|
|
||||||
0
second.txt
Normal file
0
second.txt
Normal file
0
treize.txt
Normal file
0
treize.txt
Normal file
3
trente.txt
Normal file
3
trente.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
premiers
|
||||||
|
|
||||||
|
deuxiemes
|
||||||
Reference in New Issue
Block a user