mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-21 13:35:39 +00:00
Internalized codename generation
This commit is contained in:
parent
198e988671
commit
174a843004
4
.github/workflows/cooker-selfhosted.yml
vendored
4
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -34,9 +34,9 @@ jobs:
|
|||
|
||||
- name: Generate build ID
|
||||
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}"
|
||||
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}"
|
||||
result=$capitalized_word1$capitalized_word2
|
||||
echo $result > ${GITHUB_WORKSPACE}/buildid
|
||||
|
|
3319
automation_tools/codename_wordlist.txt
Normal file
3319
automation_tools/codename_wordlist.txt
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue