Skip to content

Commit da5b141

Browse files
committed
fix(CI: copy-ami.yml): correct MD and CSV output files names
1 parent 333b7ab commit da5b141

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/copy-ami.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ jobs:
7474
if: inputs.make_public
7575
run: |
7676
# Lowercase AMI Name, replace spaces and dots with underscores
77-
wiki_data_file="${{ env.AMI_NAME }}"
78-
wiki_data_file="${wiki_data_file// /_}"
79-
wiki_data_file="${wiki_data_file//./_}"
80-
echo "wiki_data_file=${wiki_data_file,,}" >> $GITHUB_ENV
77+
# to get file name for wiki data, like "AlmaLinux OS 9.6.20250522 x86_64" and almalinux_os_9_6_20250522_x86_64
78+
wiki_data_file=$(echo "${{ env.AMI_NAME }}" | tr '[:upper:]' '[:lower:]' | tr -s ' .' '_')
79+
echo "wiki_data_file=${wiki_data_file}" >> $GITHUB_ENV
8180
8281
pip3 install markdown_table
8382

0 commit comments

Comments
 (0)