We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87a5229 commit d329952Copy full SHA for d329952
.github/actions/update-process-exporter-yml/action.yml
@@ -27,19 +27,13 @@ runs:
27
IFS=',' read -r -a NAMES_ARRAY <<< "$PROCESS_NAMES"
28
29
# Create the YAML file and write the content
30
- cat << EOF > "$yml_file_path"
31
-process_names:
32
-EOF
33
-
+ echo "process_names:" > "$yml_file_path"
34
# Write each process name
35
for NAME in "${NAMES_ARRAY[@]}"; do
36
- cat << EOF >> "$yml_file_path"
37
-- cmdline:
38
- - $NAME
39
- name: '{{.Comm}}'
40
+ echo "- cmdline:" >> "$yml_file_path"
+ echo " - $NAME" >> "$yml_file_path"
+ echo " name: '{{.Comm}}'" >> "$yml_file_path"
41
done
42
43
echo "YAML file updated: $yml_file_path"
44
45
- name: Restart and Check process-exporter Status
0 commit comments