Skip to content

Commit 28dd309

Browse files
committed
ci: skip POT export on tag pushes; run only on branch 17.0
1 parent cd96987 commit 28dd309

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,5 @@ jobs:
193193
token: ${{ secrets.CODECOV_TOKEN }}
194194
- name: Update .pot files
195195
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
196-
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'openspp' }}
196+
# Only update POT files when pushing to the canonical 17.0 branch in org repo.
197+
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'openspp' && startsWith(github.ref, 'refs/heads/17.0') }}

0 commit comments

Comments
 (0)