Skip to content

Commit

Permalink
Use transifex API v3 for uploading i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Besson committed Apr 27, 2021
1 parent a5ce705 commit 28ed361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,6 @@ jobs:
echo "::add-mask::$TOKEN"
npm i
npm run messages:extract
curl -L --fail --user api:"$TOKEN" -F file="@src/translations/c2corg_ui-client.pot" -X PUT "https://www.transifex.com/api/2/project/c2corg_ui/resource/main/content/"
curl --location --fail --request POST 'https://rest.api.transifex.com/resource_strings_async_uploads' --header 'Content-Type: multipart/form-data' --header 'Authorization: Bearer $TOKEN' --form 'content=@src/translations/c2corg_ui-client.pot' --form 'resource="o:camptocamp-association:p:c2corg_ui:r:main"'
env:
TOKEN: ${{ secrets.TRANSIFEX_TOKEN }}

0 comments on commit 28ed361

Please sign in to comment.