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