Orchard/.github/workflows/build-crowdin-translation-packages.yml
Benedek Farkas 2dd08dbc04
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
2023-03-22 16:51:49 +01:00

31 lines
863 B
YAML

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 }}