add indexOf() rule for Kirby collection loops #62
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: i18n | |
| on: push | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| i18n: | |
| name: update translations | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: setup php | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.5" | |
| extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, dom | |
| coverage: none | |
| tools: composer:v2 | |
| - name: install composer dependencies | |
| run: composer install --no-interaction --no-progress | |
| - name: install kirby cli globally | |
| run: composer global require getkirby/cli | |
| - name: extract translations | |
| run: | | |
| export PATH="$HOME/.composer/vendor/bin:$PATH" | |
| kirby trawl:extract --clean | |
| - uses: lingodotdev/lingo.dev@main | |
| with: | |
| api-key: ${{ secrets.LINGODOTDEV_API_KEY }} |