Skip to content

Commit 3f45bec

Browse files
style(pre-commit): autofix
1 parent c5422ff commit 3f45bec

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflow-templates/auto-sync-pilot-auto.yaml.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ jobs:
6060
base: {{TARGET_BRANCH}}
6161
commit-message: "chore: update autoware/universe version"
6262
delete-branch: true
63-
reviewers: ${{ github.actor }}
63+
reviewers: ${{ github.actor }}

.github/workflows/create-sub-beta-branch.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)