mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00

* 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
31 lines
863 B
YAML
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 }}
|