Skip to content

Commit d329952

Browse files
committed
fix: format
1 parent 87a5229 commit d329952

File tree

1 file changed

+4
-10
lines changed
  • .github/actions/update-process-exporter-yml

1 file changed

+4
-10
lines changed

.github/actions/update-process-exporter-yml/action.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,13 @@ runs:
2727
IFS=',' read -r -a NAMES_ARRAY <<< "$PROCESS_NAMES"
2828
2929
# Create the YAML file and write the content
30-
cat << EOF > "$yml_file_path"
31-
process_names:
32-
EOF
33-
30+
echo "process_names:" > "$yml_file_path"
3431
# Write each process name
3532
for NAME in "${NAMES_ARRAY[@]}"; do
36-
cat << EOF >> "$yml_file_path"
37-
- cmdline:
38-
- $NAME
39-
name: '{{.Comm}}'
40-
EOF
33+
echo "- cmdline:" >> "$yml_file_path"
34+
echo " - $NAME" >> "$yml_file_path"
35+
echo " name: '{{.Comm}}'" >> "$yml_file_path"
4136
done
42-
4337
echo "YAML file updated: $yml_file_path"
4438
4539
- name: Restart and Check process-exporter Status

0 commit comments

Comments
 (0)