Internalized codename generation

This commit is contained in:
icenine451 2023-05-25 12:16:30 -04:00
parent 198e988671
commit 174a843004
2 changed files with 3321 additions and 2 deletions

View file

@ -34,9 +34,9 @@ jobs:
- name: Generate build ID - name: Generate build ID
run: | run: |
word1=$(curl -s https://random-word-api.herokuapp.com/word?length=5 | tr -d '[]"') word1=$(shuf -n 1 ${GITHUB_WORKSPACE}/automation_tools/codename_wordlist.txt)
capitalized_word1="$(tr '[:lower:]' '[:upper:]' <<< ${word1:0:1})${word1:1}" capitalized_word1="$(tr '[:lower:]' '[:upper:]' <<< ${word1:0:1})${word1:1}"
word2=$(curl -s https://random-word-api.herokuapp.com/word?length=5 | tr -d '[]"') word2=$(shuf -n 1 ${GITHUB_WORKSPACE}/automation_tools/codename_wordlist.txt)
capitalized_word2="$(tr '[:lower:]' '[:upper:]' <<< ${word2:0:1})${word2:1}" capitalized_word2="$(tr '[:lower:]' '[:upper:]' <<< ${word2:0:1})${word2:1}"
result=$capitalized_word1$capitalized_word2 result=$capitalized_word1$capitalized_word2
echo $result > ${GITHUB_WORKSPACE}/buildid echo $result > ${GITHUB_WORKSPACE}/buildid

File diff suppressed because it is too large Load diff