Skip to content

J4 Build JoomlaCMSProject #2473

J4 Build JoomlaCMSProject

J4 Build JoomlaCMSProject #2473

name: J4 Build JoomlaCMSProject
# Controls when the action will run.
on:
# Runs twice a day at 11 and 23
schedule:
- cron: '0 11,23 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deployment:
if: (github.event_name == 'schedule' && github.repository == 'joomla/core-translations') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
# Runs the HTTP Request action command - https://github.com/fjogeleit/http-request-action
- name: Call build URL
id: BuildV4CMS
uses: fjogeleit/[email protected]
with:
url: 'https://joomla.crowdin.com/api/v2/projects/${{ secrets.CROWDIN_PROJECT_ID }}/translations/builds'
method: 'POST'
contentType: 'application/json'
data: '{"targetLanguageIds": [],"skipUntranslatedStrings": true,"skipUntranslatedFiles": false,"exportWithMinApprovalsCount": 1}'
bearerToken: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Show Response
run: echo ${{ steps.BuildV4CMS.outputs.response }}