From e352326c17514e2c67b27b13462c1c056e67c7e4 Mon Sep 17 00:00:00 2001 From: Harris Borawski Date: Tue, 6 Dec 2022 15:23:24 -0800 Subject: [PATCH] compare against tag name instead of release name --- scripts/after-shipit-pod-push.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/after-shipit-pod-push.js b/scripts/after-shipit-pod-push.js index 7a196c527..76f0a897e 100644 --- a/scripts/after-shipit-pod-push.js +++ b/scripts/after-shipit-pod-push.js @@ -16,7 +16,7 @@ class AfterShipItPodPush { while (!found && attempt < 10) { const { data } = await auto.git.github.repos.listReleases({owner: auto.config.owner, repo: auto.config.repo}) - const release = data.find(element => element.name === newVersion) + const release = data.find(element => element.tag_name === newVersion) const { data: releaseData } = await auto.git.github.repos.getRelease({owner: auto.config.owner, repo: auto.config.repo, release_id: release.id}) const zip = releaseData.assets.find(element => element.name === 'PlayerUI_Pod.zip' && element.state === 'uploaded')