Skip to content

Commit

Permalink
Updated push command to use expected format for resource ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ls-jf-gagnon committed Nov 11, 2022
1 parent 6fb1c68 commit 3ed6bb3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
);
Expand All @@ -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
Expand Down

0 comments on commit 3ed6bb3

Please sign in to comment.