Skip to content

Commit 201859d

Browse files
author
Chirag Sharma IAMOPS
committed
fix: input name on deploy job
1 parent ad22bfa commit 201859d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/deploy-wf-service.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ jobs:
6060
id: update_helm_check
6161
shell: bash
6262
run: |
63-
if [ -f "kubernetes/helm/wf-service-migration/${{ github.event.inputs.environment }}-custom-values.yaml" ]; then
64-
echo "file_name=${{ github.event.inputs.environment }}-custom-values.yaml" >> "$GITHUB_OUTPUT"
65-
elif [ "${{ github.event.inputs.environment }}" == "dev" ]; then
63+
if [ -f "kubernetes/helm/wf-service-migration/${{ inputs.environment }}-custom-values.yaml" ]; then
64+
echo "file_name=${{ inputs.environment }}-custom-values.yaml" >> "$GITHUB_OUTPUT"
65+
elif [ "${{ inputs.environment }}" == "dev" ]; then
6666
echo "file_name=dev-custom-values.yaml" >> "$GITHUB_OUTPUT"
6767
else
6868
echo "skip_helm=true" >> "$GITHUB_OUTPUT"
@@ -75,14 +75,14 @@ jobs:
7575
repository: ballerine-io/cloud-infra-config
7676
branch: main
7777
commitChange: true
78-
message: 'Update wf-service image Version to ${{ github.event.inputs.tag }} - (Commit hash: ${{ github.sha }}, commit message: ${{ github.event.head_commit.message }})'
78+
message: 'Update wf-service image Version to ${{ inputs.tag }} - (Commit hash: ${{ github.sha }}, commit message: ${{ github.event.head_commit.message }})'
7979
token: ${{ secrets.GIT_TOKEN }}
8080
changes: |
8181
{
8282
"kubernetes/helm/wf-service-migration/${{steps.update_helm_check.outputs.file_name}}": {
83-
"image.tag": "${{ github.event.inputs.tag }}",
84-
"prismaMigrate.image.tag": "${{ github.event.inputs.tag }}",
85-
"dbMigrate.image.tag": "${{ github.event.inputs.tag }}",
86-
"dataSync.image.tag": "${{ github.event.inputs.tag }}"
83+
"image.tag": "${{ inputs.tag }}",
84+
"prismaMigrate.image.tag": "${{ inputs.tag }}",
85+
"dbMigrate.image.tag": "${{ inputs.tag }}",
86+
"dataSync.image.tag": "${{ inputs.tag }}"
8787
}
8888
}

0 commit comments

Comments
 (0)