Create check-dist.yml (#139)

* Add check-dist.yml

* Fix triggers in licensed.yml

* Delete licensed.yml

* npm run prepare

* Update dist/
This commit is contained in:
Brian Cristante 2021-10-13 08:00:21 -04:00 committed by GitHub
parent ac6fa9ba9e
commit 78c7f1a653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 72 additions and 3930 deletions

51
.github/workflows/check-dist.yml vendored Normal file
View File

@ -0,0 +1,51 @@
# `dist/index.js` is a special file in Actions.
# When you reference an action with `uses:` in a workflow,
# `index.js` is the code that will run.
# For our project, we generate this file through a build process from other source files.
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
name: Check dist/
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
check-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
run: npm ci
- name: Rebuild the dist/ directory
run: npm run prepare
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff
# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
path: dist/

40
dist/index.js generated vendored
View File

@ -3,10 +3,10 @@ require('./sourcemap-register.js');module.exports =
/******/ var __webpack_modules__ = ({ /******/ var __webpack_modules__ = ({
/***/ 932: /***/ 932:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { /***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
const core = __webpack_require__(186); const core = __nccwpck_require__(186);
const wait = __webpack_require__(258); const wait = __nccwpck_require__(258);
// most @actions toolkit packages have async methods // most @actions toolkit packages have async methods
@ -31,7 +31,7 @@ run();
/***/ }), /***/ }),
/***/ 351: /***/ 351:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -43,8 +43,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
const os = __importStar(__webpack_require__(87)); const os = __importStar(__nccwpck_require__(87));
const utils_1 = __webpack_require__(278); const utils_1 = __nccwpck_require__(278);
/** /**
* Commands * Commands
* *
@ -117,7 +117,7 @@ function escapeProperty(s) {
/***/ }), /***/ }),
/***/ 186: /***/ 186:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -138,11 +138,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
const command_1 = __webpack_require__(351); const command_1 = __nccwpck_require__(351);
const file_command_1 = __webpack_require__(717); const file_command_1 = __nccwpck_require__(717);
const utils_1 = __webpack_require__(278); const utils_1 = __nccwpck_require__(278);
const os = __importStar(__webpack_require__(87)); const os = __importStar(__nccwpck_require__(87));
const path = __importStar(__webpack_require__(622)); const path = __importStar(__nccwpck_require__(622));
/** /**
* The code to exit an action * The code to exit an action
*/ */
@ -362,7 +362,7 @@ exports.getState = getState;
/***/ }), /***/ }),
/***/ 717: /***/ 717:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -377,9 +377,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
// We use any as a valid input type // We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
const fs = __importStar(__webpack_require__(747)); const fs = __importStar(__nccwpck_require__(747));
const os = __importStar(__webpack_require__(87)); const os = __importStar(__nccwpck_require__(87));
const utils_1 = __webpack_require__(278); const utils_1 = __nccwpck_require__(278);
function issueCommand(command, message) { function issueCommand(command, message) {
const filePath = process.env[`GITHUB_${command}`]; const filePath = process.env[`GITHUB_${command}`];
if (!filePath) { if (!filePath) {
@ -470,7 +470,7 @@ module.exports = require("path");;
/******/ var __webpack_module_cache__ = {}; /******/ var __webpack_module_cache__ = {};
/******/ /******/
/******/ // The require function /******/ // The require function
/******/ function __webpack_require__(moduleId) { /******/ function __nccwpck_require__(moduleId) {
/******/ // Check if module is in cache /******/ // Check if module is in cache
/******/ if(__webpack_module_cache__[moduleId]) { /******/ if(__webpack_module_cache__[moduleId]) {
/******/ return __webpack_module_cache__[moduleId].exports; /******/ return __webpack_module_cache__[moduleId].exports;
@ -485,7 +485,7 @@ module.exports = require("path");;
/******/ // Execute the module function /******/ // Execute the module function
/******/ var threw = true; /******/ var threw = true;
/******/ try { /******/ try {
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__);
/******/ threw = false; /******/ threw = false;
/******/ } finally { /******/ } finally {
/******/ if(threw) delete __webpack_module_cache__[moduleId]; /******/ if(threw) delete __webpack_module_cache__[moduleId];
@ -498,11 +498,11 @@ module.exports = require("path");;
/************************************************************************/ /************************************************************************/
/******/ /* webpack/runtime/compat */ /******/ /* webpack/runtime/compat */
/******/ /******/
/******/ __webpack_require__.ab = __dirname + "/";/************************************************************************/ /******/ __nccwpck_require__.ab = __dirname + "/";/************************************************************************/
/******/ // module exports must be returned from runtime so entry inlining is disabled /******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup /******/ // startup
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(932); /******/ return __nccwpck_require__(932);
/******/ })() /******/ })()
; ;
//# sourceMappingURL=index.js.map //# sourceMappingURL=index.js.map

3911
dist/sourcemap-register.js generated vendored

File diff suppressed because one or more lines are too long