From 3ed6bb35792fc60812a26c63b55dba52a43f6b84 Mon Sep 17 00:00:00 2001 From: Jean-Francois Gagnon Date: Fri, 11 Nov 2022 14:32:08 -0500 Subject: [PATCH] Updated push command to use expected format for resource ID --- src/entrypoint.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/entrypoint.ts b/src/entrypoint.ts index b32f249..7545c56 100755 --- a/src/entrypoint.ts +++ b/src/entrypoint.ts @@ -35,7 +35,7 @@ const pushTranslations = async ({ slackWebhookUrl }: Input) => { // Extract the project and package name const match = regexp.exec(resourceName); if (match) { - const [, projectID, resourceID] = match; + const [, , projectID, resourceID] = match; console.log( `Pushing translations for resource ${resourceID} from project ${projectID}` ); @@ -54,7 +54,9 @@ const pushTranslations = async ({ slackWebhookUrl }: Input) => { } // Push translations to Transifex - const { stdout } = await execAsync(`tx push -s -r ${resourceName}`); + const { stdout } = await execAsync( + `tx push -s -r ${projectID}.${resourceID}` + ); console.log(`Transifex push output:\n${stdout}`); // // Track changes in resource files for Slack notification