Rewrite a portion of edits.ts

uploadRelease now specifically only uploads to an edit.
uploadToPlayStore is designed to handle multiple inputs, and commit them at the right time.
Error catching should be improved now.
This commit is contained in:
Jack Boswell (boswelja)
2020-10-20 19:27:02 +13:00
parent 640b063c96
commit 5d0e398bfb
4 changed files with 110 additions and 84 deletions

View File

@@ -1,6 +1,6 @@
import * as core from '@actions/core';
import * as fs from "fs";
import {uploadRelease} from "./edits";
import { uploadToPlayStore } from "./edits";
const {google} = require('googleapis');
const auth = new google.auth.GoogleAuth({
@@ -71,7 +71,7 @@ async function run() {
const authClient = await auth.getClient();
const downloadUrl = await uploadRelease({
const downloadUrl = await uploadToPlayStore({
auth: authClient,
applicationId: packageName,
track: track,