diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 595c7315..c80daf1e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,7 +57,7 @@ jobs: with: persist-credentials: false # Disabling shallow clone for sonarqube - fetch-depth: 0 + # fetch-depth: 0 - name: Install addons and dependencies run: oca_install_addons - name: Check licenses @@ -71,11 +71,11 @@ jobs: - name: Run tests run: oca_run_tests - uses: codecov/codecov-action@v1 + - name: Update .pot files + run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }} + if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'openspp' }} - uses: sonarsource/sonarqube-scan-action@master env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Update .pot files - run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }} - if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'openspp' }}