We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 333b7ab + da5b141 commit f48603cCopy full SHA for f48603c
.github/workflows/copy-ami.yml
@@ -74,10 +74,9 @@ jobs:
74
if: inputs.make_public
75
run: |
76
# 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
+ # to get file name for wiki data, like "AlmaLinux OS 9.6.20250522 x86_64" and almalinux_os_9_6_20250522_x86_64
+ wiki_data_file=$(echo "${{ env.AMI_NAME }}" | tr '[:upper:]' '[:lower:]' | tr -s ' .' '_')
+ echo "wiki_data_file=${wiki_data_file}" >> $GITHUB_ENV
81
82
pip3 install markdown_table
83
0 commit comments