78 Commits

Author SHA1 Message Date
Jack Boswell
935ef9c68b Update dependencies & target node20 (#212)
* Update dependencies & target Node 20

* Bump version
2024-02-10 00:01:23 +13:00
Jack Boswell
101c2cddf9 Update all dependencies and bump version (#192) 2023-09-19 16:43:48 +12:00
Jack Boswell
70c7397e86 Fix deprecated releaseFile input not being considered (#174) 2023-02-11 12:10:44 +13:00
Jack Boswell
853233422d Fix a bug where our new timeout caused the action to stay "alive" (#173) 2023-02-11 12:06:30 +13:00
Jack Boswell
9a5e7fcdd5 Add an upload timeout of 60 minutes (#171)
* Add an upload timeout of 60 minutes

* Remove now defunct tests
2023-02-10 22:59:20 +13:00
Shi Chen
cd131e853c feature: Add support for App Bundle Explorer's Internal app sharing link. (#166)
Updated json5 dependency to patch vulnerability.
2023-01-13 16:55:12 +13:00
Ivan Milisavljevic
b9dc4464a6 Dont fail the action if optional files are not present on the dics (#162) 2022-12-07 15:19:47 +13:00
Jack Boswell (boswelja)
78c9e796b1 Update dependencies + prepare for release 2022-10-24 08:17:46 +00:00
Jack Boswell
980a5c4201 Write edit expiry time to debug console (#152) 2022-10-24 21:11:26 +13:00
Jack Boswell
81a2f1ad1c Print track names when invalid track provided (#151)
* Print track names when invalid track provided

* Remove redundant safe call
2022-10-24 21:06:38 +13:00
Jack Boswell
b84eace68d Set up full input testing (#150)
* Extract main loop to something testable

* Revert "Extract main loop to something testable"

This reverts commit 35a78459698fe267933c554283212c2d06ed4bf0.

* Extract code that interacts with Google Play
We can now test our input flow as a whole

* Create some basic tests for `completed` status publishing

* Fix applying inputs
We don't want to be keeping values between runs

* Drop some redundant tests

* Create basic tests for draft rollout

* Run build

* Fix userFraction bug

* Improve readability of initialising inputs

* Fix runUpload mocking

* Migrate to github-action-ts-run-api
2022-10-24 14:18:11 +13:00
Jack Boswell (boswelja)
4d510d380a Attempt at fixing status validation
Our validation tests are A-OK, but inputs are not :(
2022-09-26 15:37:05 +13:00
Jack Boswell
99b7a1e1d4 Fix issues parsing Int and Float (#145)
Undefined was transformed into NaN, which is not undefined and thus failed validation
2022-09-24 16:51:04 +12:00
Jack Boswell
7cd1379b4f refactor: Centralized input validation (#142)
* Initial implementaion of service account json, user fraction and status validation

* Move validation to input-validation
Also created some more validators

* Rearrange whatsnew tests to clear out test folder

* Return error messages for input validation

* Create tests for some validation code

* Separate user fraction and status validation

* Write more tests and fix some bugs

* Refactor to use promises

* Fix release file loading from glob
2022-09-21 17:15:54 +12:00
Jack Boswell
b028ed83b3 Set up ESLint (#138)
* Add eslint and config

* Refactor edits.ts to comply with eslint

* Refactor whatsnew.ts to comply with eslint

* Fix final ESLint issues

* Run build
2022-09-12 20:37:51 +12:00
Jack Boswell
5427bcbe2b Ignore userFraction if status is draft (#140) 2022-09-12 20:23:41 +12:00
Thomas Aunvik
6a74f079de Add Debug Symbol File/Folder Upload (#130)
* Add Debug Symbol File/Folder Upload

Uploads Deobfuscation File type 'nativeCode'.

Inputs allowed in 'debugSymbols', a .zip file, or a folder that contains the symbols.

* Space Formatting

* Zip Directory Function higher level, and formatting
2022-09-12 00:21:02 +12:00
Jack Boswell
c16321c553 feature: Infer status from provided parameters (#122)
* Mark status as deprecated

* Make userFraction required & provide a default
We'll use this to infer `inProgress` or `completed`

* Infer status from userFraction

* Fix workflow

* Update README

* Run build

* Add support for drafts again

* Pass in isDraft

* Warn about setting draft and userFraction simultaneously

* Expose isDraft

* Do a build

* Allow passing status in again
This will be required for draft/halted
It is optional though, if it's not specified, we have updated logic for inferring it

* Update userFraction description

* Revert "Fix workflow"

This reverts commit ad98b3d449f0f36c9d4f0a3d0b2eb49a4c3e1aa9.

* Remove deprecated tag from status

* Move status back

* Allow 0 userFraction

* Run build
2022-09-11 20:53:18 +12:00
Jack Boswell
7406d2c7a1 Update deps (#137) 2022-09-11 19:51:48 +12:00
Jack Boswell
91c8f42cf7 feature: Allow editing existing Edits (#120)
* Only take edit ID for track validation

* Only take edit ID for adding releases

* Only take edit ID for mapping file upload

* Only take edit ID for uploading artifacts

* Only use app edit ID for uploading releases

* Rebuild

* Allow passing in an existing edit ID

* Expose existingEditId

* Run build
2022-06-20 20:59:52 +12:00
Jack Boswell
e00bb8ce1e feature: Add support for changesNotSentForReview (#117)
Credits to @princefr for the original implementation
2022-06-18 19:50:39 +12:00
Jack Boswell (boswelja)
7f42989517 Ensure deps are up to date and do a build 2022-06-18 18:57:34 +12:00
Jack Boswell
7b7381ed55 Added cleanup to generated service account file (#116)
Co-authored-by: Drew Heavner <veedubusc@gmail.com>
2022-06-18 18:32:34 +12:00
Jack Boswell
dd8dcab872 Chore: Update dependencies (#113)
* Bump minor versions

* Fix error not having a type

* Remove jest-circus

* Bump ncc

* Remove ts-jest

* Drop googleapis for androidpublisher in particular
Way smaller compiled size, and way shorter compile time

* Bump jest

* Bring back ts-jest

* Bump @types/node
2022-06-15 17:13:36 +12:00
Doug Keen
060a2efa0e feat: Add support for explicitly specifying release status (#78) 2021-09-21 10:57:13 -04:00
Jack Boswell (boswelja)
f4405077a3 Update types and run audit to fix high severity vulnerability 2021-03-30 19:38:15 +13:00
Jack Boswell (boswelja)
dfb1c38c76 Update all dependencies and rebuild
index.js appears to be a bit smaller after this
2021-03-19 13:43:18 +13:00
Jack Boswell (boswelja)
4bf1ac3ae4 Merge remote-tracking branch 'r0adkll/master' into ncc-build 2021-03-19 13:34:59 +13:00
Drew Heavner
edc6575646 Ensuring node modules are up to date for running 2021-03-18 14:18:40 +00:00
Diogo de Azevedo Silva
49d0f39523 fix: change log message 2021-03-17 16:04:18 -03:00
DiogoAbu
fbc59f2a64 fix: build lib 2021-03-11 20:11:26 -03:00
Jack Boswell (boswelja)
883ba42113 Minify release 2021-01-25 20:50:47 +13:00
Jack Boswell (boswelja)
0ea696ec58 Complete first build & point action to new entry 2021-01-25 20:30:07 +13:00
Jack Boswell (boswelja)
bda8b09ade Remove outputting generated release name
Seems like Google doesn't expose this before edits are committed.
2021-01-01 16:42:39 +13:00
Riccardo Lattarulo
e9a4446395 Add multiple urls to internal sharing outputs 2020-12-23 10:16:35 +01:00
Riccardo Lattarulo
b06f374506 Add internal sharing download url to output 2020-12-22 16:57:37 +01:00
Jack Boswell (boswelja)
40448bb1bb Add some output for the user to read while the action is running 2020-12-12 18:38:17 +13:00
Drew Heavner
2f949adc6e Removed call to developer api to pull the releaseName for the edit and instead used result from actual update to the track.
Added more debug logging.
2020-12-10 11:36:45 -05:00
Drew Heavner
f9a7fda708 Bumped version for release
Adjusted 'packageName' order in params to be consistent
2020-12-09 14:11:55 -05:00
Max Romanyuta
fc490c3965 Add auth 2020-12-09 18:41:12 +02:00
Max Romanyuta
df30106c36 Add missing params 2020-12-09 18:29:00 +02:00
Jack Boswell (boswelja)
8e8abbe013 Add await to getPublishedReleaseName 2020-12-08 16:58:04 +13:00
Jack Boswell (boswelja)
af37686362 Only fetch release name if the user didn't specify one
This should improve performance when manually setting a release name
2020-12-08 16:52:47 +13:00
Jack Boswell (boswelja)
373fb32d65 Output published release name on success 2020-12-01 17:53:30 +13:00
Drew Heavner
6bdd0b899a Added 'releaseFile' back to action to maintain backwards compatibility. 2020-11-11 09:46:26 -05:00
Drew Heavner
e8f8537caf Fixed typo in inAppUpdatePriority input check 2020-11-11 09:19:29 -05:00
Drew Heavner
422a77593f Added support for #27 and #33.
Updated typescript
Updated googleapis
2020-11-11 13:59:13 +00:00
Drew Heavner
bd487ef324 Updating NPM dependencies 2020-11-11 13:30:52 +00:00
Jack Boswell (boswelja)
308a7485f2 Try using for/of instead of for/in 2020-11-10 18:44:09 +13:00
Jack Boswell (boswelja)
651ca992ef More debug logging for release file validation 2020-11-10 18:11:35 +13:00