8642: Adding "Build Crowdin Translation Packages" workflow (#8660)

* Adding "Build Crowdin Translation Packages" workflow

* Adding PR trigger for testing

* Setting default shell to pwsh

* Changing extension from yaml to yml

* Revert "Adding PR trigger for testing" This reverts commit 8d00815cd5.

* Attempting to use the API key secrets directly

* Updating workflow to use andrii-bodnar/crowdin-request-action

* Removing v1 API call steps

* Fixing the underlying commit hash of the 0.0.2 tag

* Removing PR trigger
This commit is contained in:
Benedek Farkas
2023-03-22 16:51:49 +01:00
committed by GitHub
parent 049b4a8f35
commit 2dd08dbc04
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
name: Build Crowdin Translation Packages
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
jobs:
build-crowdin-translation-packages:
defaults:
run:
shell: pwsh
runs-on: ubuntu-latest
steps:
- name: Orchard CMS
uses: andrii-bodnar/crowdin-request-action@aac9a865d62b37060b0ce530db5ac5cfca02dd2c # 0.0.2
with:
route: POST /projects/{projectId}/translations/builds
projectId: 46524
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}
- name: Orchard CMS Gallery
uses: andrii-bodnar/crowdin-request-action@aac9a865d62b37060b0ce530db5ac5cfca02dd2c # 0.0.2
with:
route: POST /projects/{projectId}/translations/builds
projectId: 63766
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}