Skip to content

Commit 3e7ab46

Browse files
committed
fix(gh-actions): 🐛 Fix secret variable name and Uppercase access
1 parent 5ef0df1 commit 3e7ab46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-chatbot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ jobs:
101101
exit 1
102102
;;
103103
esac
104-
INFRA_UPPER=$(echo "${{ inputs.artifact }}" | tr 'a-z' 'A-Z')
105-
ENV_UPPER=$(echo "${{ inputs.environment }}" | tr 'a-z' 'A-Z')
104+
INFRA_UPPER=$(echo "${{steps.parse_command.outputs.environment }}" | tr 'a-z' 'A-Z')
105+
ENV_UPPER=$(echo "${{ steps.parse_command.outputs.environment }}" | tr 'a-z' 'A-Z')
106106
107-
SECRET_NAME="SS_${INFRA_UPPER}_${ENV_UPPER}"
107+
secret_name="SS_${INFRA_UPPER}_${ENV_UPPER}"
108108
109109
echo "Generated secret_name: $secret_name"
110110
echo "SECRET_NAME=$secret_name" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)