Skip to content

Commit

Permalink
Generate dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
duarten committed Mar 21, 2023
1 parent ee7aa77 commit 0239328
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
11 changes: 9 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/******/ (() => { // webpackBootstrap
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 9483:
Expand Down Expand Up @@ -9880,6 +9880,12 @@ async function run() {
core.debug(`calculating changed files for pr #${pr}`);
const changedFiles = await getChangedFiles(client, pr);
const encoder = getEncoder();
let hasChanged = false;
const totalModified = changedFiles.created.length + changedFiles.updated.length + changedFiles.deleted.length;
if (totalModified > 0) {
hasChanged = true;
}
core.setOutput("changed", String(hasChanged));
core.setOutput("files_created", encoder(changedFiles.created));
core.setOutput("files_updated", encoder(changedFiles.updated));
core.setOutput("files_deleted", encoder(changedFiles.deleted));
Expand All @@ -9893,4 +9899,5 @@ run().catch(err => {

module.exports = __webpack_exports__;
/******/ })()
;
;
//# sourceMappingURL=index.js.map
1 change: 1 addition & 0 deletions dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/sourcemap-register.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"scripts": {
"build": "tsc",
"lint": "eslint --fix '**/*.ts'",
"pack": "ncc build"
"pack": "ncc build --source-map",
"all": "npm run build && npm run lint && npm run pack"
},
"dependencies": {
"@actions/core": "1.10.0",
Expand Down Expand Up @@ -58,4 +59,4 @@
"printWidth": 100,
"tabWidth": 4
}
}
}

0 comments on commit 0239328

Please sign in to comment.