mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-08 00:14:31 +08:00
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:
30
.github/workflows/build-crowdin-translation-packages.yml
vendored
Normal file
30
.github/workflows/build-crowdin-translation-packages.yml
vendored
Normal 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 }}
|
Reference in New Issue
Block a user