Skip to content

Commit

Permalink
Simplify github action test template
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Oct 13, 2021
1 parent 865bb02 commit 00ad2be
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -29,7 +29,7 @@ set IMAGES = {
jobs:
test:
runs-on: ubuntu-latest
container: {{ "${{" }} matrix.container {{ "}}" }}
container: {% raw %}${{ matrix.container }}{% endraw %}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -58,8 +58,10 @@ jobs:
run: manifestoo -d . check-dev-status --default-dev-status=Beta
- run: oca_run_tests
- uses: codecov/codecov-action@v1
{% raw -%}
- run: |
oca_export_and_commit_pot
git fetch --unshallow --all
git push https://x-access-token:{{ "${{" }} secrets.GIT_PUSH_TOKEN {{ "}}" }}@github.com/{{ "${{" }} github.repository {{ "}}" }}
if: {{ "${{" }} matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' && startsWith(github.ref, 'refs/heads/{{ odoo_version }}') {{ "}}" }}
git push https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}
{%- endraw %}

0 comments on commit 00ad2be

Please sign in to comment.