Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Fix PO generation workflow (#1550)
sarayourfriendf99feec7a216
diff --git a/.github/workflows/generate_pot.yml b/.github/workflows/generate_pot.ymlindex ce8fae691..9ff6d80cd 100644--- a/.github/workflows/generate_pot.yml+++ b/.github/workflows/generate_pot.yml@@ -1,4 +1,4 @@-name: Generate translation POT file+name: Generate translation PO fileon:push:@@ -11,21 +11,32 @@ jobs:steps:- name: Checkoutuses: actions/checkout@v3+ with:+ ref: main- uses: ./.github/actions/setup-node-env- - name: Generate POT+ - name: Generate POrun: pnpm i18n:generate-pot- name: Copy to rootrun: cp ./openverse.pot /tmp/openverse.pot- - name: Update POT on translations branch+ - name: Checkout `translations` branch+ uses: actions/checkout@v3+ with:+ ref: translations++ - name: Update POT on `translations` branchrun: |- git checkout translationsrm openverse.potcp /tmp/openverse.pot openverse.potgit config --global user.name 'POT Updater'git config --global user.email '[email protected]'git commit -am 'Update POT file'git push++ - name: Re-checkout `main` branch to allow for cleanup to work+ uses: actions/checkout@v3+ with:+ ref: main