diff --git a/.changes/rename-includeupdaterjson.md b/.changes/rename-includeupdaterjson.md new file mode 100644 index 0000000..78e66b0 --- /dev/null +++ b/.changes/rename-includeupdaterjson.md @@ -0,0 +1,5 @@ +--- +action: major +--- + +**Breaking Change**: Renamed `includeUpdaterJson` to `uploadUpdaterJson` for consistency with other similar options. diff --git a/README.md b/README.md index 0985b1f..5e2d67f 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ jobs: # This file assume you're using the GitHub Release as your updater endpoint. # # default: true - includeUpdaterJson: true + uploadUpdaterJson: true # Whether the action will use the NSIS (setup.exe) or WiX (.msi) bundles for the updater JSON if both types exist. # diff --git a/action.yml b/action.yml index ef8a788..6237c3f 100644 --- a/action.yml +++ b/action.yml @@ -24,7 +24,7 @@ inputs: projectPath: description: 'Path to the root of the project that will be built. It must NOT be gitignored.' default: '.' - includeUpdaterJson: + uploadUpdaterJson: description: 'Whether to upload a static JSON file for the updater using GitHub Releases as the CDN' default: 'true' updaterJsonPreferNsis: diff --git a/dist/index.js b/dist/index.js index df5eee1..11e455a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -85351,7 +85351,7 @@ async function run() { } if (releaseId) { await (0,_upload_release_assets__WEBPACK_IMPORTED_MODULE_6__/* .uploadAssets */ .r)(releaseId, artifacts, _inputs__WEBPACK_IMPORTED_MODULE_5__/* .retryAttempts */ .z); - if (_inputs__WEBPACK_IMPORTED_MODULE_5__/* .includeUpdaterJson */ .Sv) { + if (_inputs__WEBPACK_IMPORTED_MODULE_5__/* .shouldUploadUpdaterJson */ .Qe) { // Once we start throwing our own errors in this function we may need some custom retry logic. // We can't retry just the inner asset upload as that may upload an outdated latest.json file. await (0,_utils__WEBPACK_IMPORTED_MODULE_9__/* .retry */ .L5)(() => (0,_upload_version_json__WEBPACK_IMPORTED_MODULE_7__/* .uploadVersionJSON */ .Y)(info.version, body, tagName, releaseId, artifacts, targetInfo, info.unzippedSigs), @@ -85386,7 +85386,6 @@ __nccwpck_require__.d(__webpack_exports__, { K4: () => (/* binding */ draft), yK: () => (/* binding */ generateReleaseNotes), qu: () => (/* binding */ githubBaseUrl), - Sv: () => (/* binding */ includeUpdaterJson), m0: () => (/* binding */ isAndroid), _o: () => (/* binding */ isDebug), Hd: () => (/* binding */ isGitea), @@ -85400,6 +85399,7 @@ __nccwpck_require__.d(__webpack_exports__, { dw: () => (/* binding */ releaseAssetNamePattern), LB: () => (/* binding */ repo), z: () => (/* binding */ retryAttempts), + Qe: () => (/* binding */ shouldUploadUpdaterJson), Jc: () => (/* binding */ shouldUploadWorkflowArtifacts), PK: () => (/* binding */ tauriScript), ZQ: () => (/* binding */ updaterJsonPreferNsis), @@ -85466,7 +85466,7 @@ function firstString() { const projectPath = (0,external_node_path_.resolve)(process.cwd(), core.getInput('projectPath') || process.argv[2]); -const includeUpdaterJson = core.getBooleanInput('includeUpdaterJson'); +const shouldUploadUpdaterJson = core.getBooleanInput('uploadUpdaterJson'); const retryAttempts = parseInt(core.getInput('retryAttempts') || '0', 10); const tauriScript = core.getInput('tauriScript') || undefined; const releaseAssetNamePattern = core.getInput('releaseAssetNamePattern') || undefined; diff --git a/src/index.ts b/src/index.ts index bb64b5f..fa52d07 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ import * as core from '@actions/core'; import { buildProject } from './build'; import { getOrCreateRelease } from './create-release'; import { - includeUpdaterJson, + shouldUploadUpdaterJson, isIOS, parsedArgs, retryAttempts, @@ -127,7 +127,7 @@ async function run(): Promise { if (releaseId) { await uploadReleaseAssets(releaseId, artifacts, retryAttempts); - if (includeUpdaterJson) { + if (shouldUploadUpdaterJson) { // Once we start throwing our own errors in this function we may need some custom retry logic. // We can't retry just the inner asset upload as that may upload an outdated latest.json file. await retry( diff --git a/src/inputs.ts b/src/inputs.ts index 7a06ddc..f84f888 100644 --- a/src/inputs.ts +++ b/src/inputs.ts @@ -10,7 +10,8 @@ export const projectPath = resolve( core.getInput('projectPath') || process.argv[2], ); -export const includeUpdaterJson = core.getBooleanInput('includeUpdaterJson'); +export const shouldUploadUpdaterJson = + core.getBooleanInput('uploadUpdaterJson'); export const retryAttempts = parseInt( core.getInput('retryAttempts') || '0',