@@ -137,23 +137,23 @@ jobs:
137137 mkdir -p .github/workflows
138138 TEMPLATE_FILE="/tmp/workflow-templates/auto-sync-pilot-auto.yaml.template"
139139 OUTPUT_FILE=".github/workflows/auto-sync-pilot-auto.yaml"
140-
140+
141141 if [ -f "$TEMPLATE_FILE" ]; then
142142 echo "Rendering auto-sync-pilot-auto.yaml template for child branch"
143-
143+
144144 # Read template file
145145 TEMPLATE_CONTENT=$(cat "$TEMPLATE_FILE")
146-
146+
147147 # Replace template variables
148148 # Using sed with different delimiters to avoid issues with slashes in branch names
149149 RENDERED_CONTENT=$(echo "$TEMPLATE_CONTENT" | \
150150 sed "s|{{SOURCE_BRANCH}}|${{ inputs.branch_name }}|g" | \
151151 sed "s|{{TARGET_REPOSITORY}}|${{ inputs.target_repository }}|g" | \
152152 sed "s|{{TARGET_BRANCH}}|${{ inputs.target_branch }}|g")
153-
153+
154154 # Write rendered content to output file
155155 echo "$RENDERED_CONTENT" > "$OUTPUT_FILE"
156-
156+
157157 echo "Created auto-sync-pilot-auto.yaml for child branch"
158158 echo "Source branch: ${{ inputs.branch_name }}"
159159 echo "Target repository: ${{ inputs.target_repository }}"
@@ -165,12 +165,12 @@ jobs:
165165 - name : Commit and push child branch
166166 run : |
167167 git add .github/branch-meta.yaml .github/workflows/auto-add-label.yaml
168-
168+
169169 # Add the auto-sync workflow if it exists
170170 if [ -f ".github/workflows/auto-sync-pilot-auto.yaml" ]; then
171171 git add .github/workflows/auto-sync-pilot-auto.yaml
172172 fi
173-
173+
174174 git commit -m "chore: initialize child branch with meta file and workflows
175175
176176 - Add .github/branch-meta.yaml with branch metadata
@@ -297,4 +297,4 @@ jobs:
297297 echo "1. Review and merge the PR to ${{ inputs.base_branch }}"
298298 echo "2. The child branch ${{ inputs.branch_name }} is ready for use"
299299 echo "3. PRs merged to ${{ inputs.base_branch }} will be auto-cherry-picked to ${{ inputs.branch_name }}"
300- echo "4. Changes to ${{ inputs.branch_name }} will be auto-synced to ${{ inputs.target_repository }} branch ${{ inputs.target_branch }}"
300+ echo "4. Changes to ${{ inputs.branch_name }} will be auto-synced to ${{ inputs.target_repository }} branch ${{ inputs.target_branch }}"
0 commit comments