Skip to content

Test #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed

Test #69

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/actions/check-locale-changes/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Check Locale Changes'
description: 'Check which enabled locales have changes and generate deployment matrix'
inputs:
trigger-type:
description: 'Type of trigger: "manual", "auto", or "docs-pr"'
description: 'Type of trigger: "manual" or "auto"'
required: true
manual-locales:
description: 'Comma-separated list of locales for manual trigger (optional)'
Expand All @@ -19,13 +19,13 @@ outputs:
runs:
using: 'composite'
steps:
- name: Generate dynamic files config (for auto/docs-pr triggers)
if: inputs.trigger-type == 'auto' || inputs.trigger-type == 'docs-pr'
- name: Generate dynamic files config (for auto triggers)
if: inputs.trigger-type == 'auto'
id: generate-files-config
shell: bash
run: |
# Use the dedicated script to generate files config
files_yaml=$(.github/scripts/generate-files-config.sh)
files_yaml=$(node .github/scripts/generate-files-config.js)

echo "Generated files_yaml:"
echo "$files_yaml"
Expand All @@ -37,8 +37,8 @@ runs:
echo "EOF"
} >> $GITHUB_OUTPUT

- name: Get changed files (for auto/docs-pr triggers)
if: inputs.trigger-type == 'auto' || inputs.trigger-type == 'docs-pr'
- name: Get changed files (for auto triggers)
if: inputs.trigger-type == 'auto'
id: changes
uses: tj-actions/changed-files@v41
with:
Expand All @@ -54,9 +54,9 @@ runs:

if [ "$trigger_type" == "manual" ]; then
# For manual trigger, we don't need changes JSON
output=$(.github/scripts/generate-locale-matrix.sh "$trigger_type" "$manual_locales")
output=$(node .github/scripts/generate-locale-matrix.js "$trigger_type" "$manual_locales")
else
# For auto/docs-pr triggers, create a minimal JSON with only the boolean change indicators
# For auto triggers, create a minimal JSON with only the boolean change indicators
changes_json=$(cat << 'EOF'
{
"core_any_changed": "${{ steps.changes.outputs.core_any_changed }}",
Expand All @@ -75,7 +75,7 @@ runs:

temp_file=$(mktemp)
echo "$changes_json" > "$temp_file"
output=$(.github/scripts/generate-locale-matrix.sh "$trigger_type" "" "$temp_file")
output=$(node .github/scripts/generate-locale-matrix.js "$trigger_type" "" "$temp_file")
rm -f "$temp_file"
fi

Expand Down
Loading