Skip to content

Fix missing double quotes YAML #20

Fix missing double quotes YAML

Fix missing double quotes YAML #20

name: Translate Documentation
on:
push:
branches:
- master
jobs:
translate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Send translation request
run: |
BASE_SHA="${{ github.event.before }}"
HEAD_SHA="${{ github.sha }}"
REPO="${GITHUB_REPOSITORY#*/}"
BRANCHNAME="master"
SOURCE_FOLDER="en/"
TARGET_FOLDER=""
echo "==== Translation Request Parameters ===="
echo "Base SHA: $BASE_SHA"
echo "Head SHA: $HEAD_SHA"
echo "Repository: $REPO"
echo "Source Folder: $SOURCE_FOLDER"
echo "Target Folder: $TARGET_FOLDER"
echo "========================================"
curl -X POST "https://api.aspose.ai/slides/internal-services/translate-documentation" \
-H "Content-Type: application/json" \
-d "{
\"baseSha\": \"$BASE_SHA\",
\"headSha\": \"$HEAD_SHA\",
\"repo\": \"$REPO\",
\"branchName\": \"$BRANCHNAME\",
\"sourceFolder\": \"$SOURCE_FOLDER\",
\"targetFolder\": \"$TARGET_FOLDER\"
}"