Skip to content

Commit 3860aef

Browse files
committed
feat: revert file location change
1 parent 28af317 commit 3860aef

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
In order to publish a new version of the action, simply update the "version" in the package.json and merge into the main branch.
44

5-
If your changed files include `src/main.ts`, then you should also update the bundle in the `dist` folder using `npm run build`.
5+
If your changed files include `find-successful-workflow.ts`, then you should also update the bundle in the `dist` folder using `npm run build`.
66

77
The workflow at `./github/workflows/publish.yml` will apply the new version in the form of tags, which is all that is needed to publish an Action.
88

dist/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64847,7 +64847,7 @@ function wrappy (fn, cb) {
6484764847

6484864848
/***/ }),
6484964849

64850-
/***/ 399:
64850+
/***/ 5468:
6485164851
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
6485264852

6485364853
"use strict";
@@ -64870,6 +64870,7 @@ const fs_1 = __nccwpck_require__(7147);
6487064870
const https_proxy_agent_1 = __nccwpck_require__(7219);
6487164871
const proxy_from_env_1 = __nccwpck_require__(3329);
6487264872
const { runId, repo: { repo, owner }, eventName, } = github.context;
64873+
process.env.GITHUB_TOKEN = core.getInput('token', { required: true });
6487364874
const mainBranchName = core.getInput('main-branch-name');
6487464875
const errorOnNoSuccessfulWorkflow = core.getBooleanInput('error-on-no-successful-workflow');
6487564876
const lastSuccessfulEvent = core.getInput('last-successful-event');
@@ -67179,7 +67180,7 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
6717967180
/******/ // startup
6718067181
/******/ // Load entry module and return exports
6718167182
/******/ // This entry module is referenced by other modules so it can't be inlined
67182-
/******/ var __webpack_exports__ = __nccwpck_require__(399);
67183+
/******/ var __webpack_exports__ = __nccwpck_require__(5468);
6718367184
/******/ module.exports = __webpack_exports__;
6718467185
/******/
6718567186
/******/ })()

src/main.ts renamed to find-successful-workflow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const {
1111
repo: { repo, owner },
1212
eventName,
1313
} = github.context;
14+
process.env.GITHUB_TOKEN = core.getInput('token', { required: true });
1415
const mainBranchName = core.getInput('main-branch-name');
1516
const errorOnNoSuccessfulWorkflow = core.getBooleanInput(
1617
'error-on-no-successful-workflow',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"description": "This package.json is here purely to control the version of the Action, in combination with https://github.com/JamesHenry/publish-shell-action",
66
"scripts": {
7-
"build": "ncc build src/main.ts -o dist --license licenses.txt",
7+
"build": "ncc build find-successful-workflow.ts -o dist --license licenses.txt",
88
"prepare": "is-ci || husky install",
99
"format:check": "prettier --check .",
1010
"format": "prettier --write ."

0 commit comments

Comments
 (0)