mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
Merge pull request #63 from Hestia-Homes/sap-dev-model
change sapmodel stack anme to be more general
This commit is contained in:
commit
445b46507b
1 changed files with 6 additions and 3 deletions
9
.github/workflows/Deploy.yml
vendored
9
.github/workflows/Deploy.yml
vendored
|
|
@ -32,7 +32,8 @@ jobs:
|
|||
id: secret_prefix
|
||||
run: |
|
||||
# Convert branch name to uppercase and replace hyphens with underscores
|
||||
echo "::set-output name=secret_prefix::$(echo "${{ github.ref_name }}" | tr 'a-z-' 'A-Z_')"
|
||||
# TODO: Remove the CHANGE line by changing the secrets name
|
||||
echo "::set-output name=secret_prefix::$(echo "${{ github.ref_name }}" | sed 's/-/_change-/g' | tr 'a-z-' 'A-Z_')"
|
||||
|
||||
- name: Set domain name
|
||||
id: set_domain
|
||||
|
|
@ -54,8 +55,10 @@ jobs:
|
|||
- name: Set stack_name
|
||||
id: set_stack_name
|
||||
run: |
|
||||
if [[ "${{ github.ref_name }}" == "sap-dev" || "${{ github.ref_name }}" == "sap-prod" ]]; then
|
||||
echo "::set-output name=stack_name::sapmodel"
|
||||
# Take branch prefix and add "model" for stack name
|
||||
stack_name=$( echo ${{ github.ref_name }} | awk -F"-" '{print $1}' | sed 's/$/model/g')
|
||||
if [ -z "${stack_name}" ]; then
|
||||
echo "::set-output name=stack_name::${stack_name}"
|
||||
else
|
||||
echo "::set-output name=stack_name::"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue