Skip to content

Commit cb69ac8

Browse files
committed
Update environment options
1 parent 1962934 commit cb69ac8

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

.github/workflows/deploy-opencrvs.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -63,32 +63,7 @@ jobs:
6363
steps:
6464
- uses: actions/checkout@v5
6565
- name: Generate summary
66-
run: |
67-
# set the mark (colored emoji)
68-
RESET="${{ inputs.reset }}"
69-
if [ "$RESET" = "true" ]; then
70-
RESET_MARK="<span style='color:green'>✅ Yes</span>"
71-
else
72-
RESET_MARK="<span style='color:red'>❌ No</span>"
73-
fi
74-
75-
# build the summary into a variable (unquoted heredoc so $RESET_MARK expands)
76-
SUMMARY=$(cat <<EOF
77-
### Deployment Summary
78-
79-
| Key | Value |
80-
|-----|-------|
81-
| 🌐 Environment URL | https://${{ vars.DOMAIN }} |
82-
| 🛠 Core image tag | \`${{ inputs.core-image-tag }}\` |
83-
| 📦 Country config image | \`${{ inputs.countryconfig-image-tag }}\` |
84-
| 🌿 Branch name | \`${{ github.ref_name }}\` |
85-
| 🔄 Reset environment | $RESET_MARK |
86-
EOF
87-
)
88-
89-
# strip the leading 4-space indentation that we used for readability in the workflow,
90-
# then append the cleaned output to the GitHub Actions summary (single append)
91-
echo "$SUMMARY" | sed 's/^ //' >> $GITHUB_STEP_SUMMARY
66+
run: "# set the mark (colored emoji)\nRESET=\"${{ inputs.reset }}\"\nif [ \"$RESET\" = \"true\" ]; then\n RESET_MARK=\"<span style='color:green'>✅ Yes</span>\"\nelse\n RESET_MARK=\"<span style='color:red'>❌ No</span>\"\nfi\n\n# build the summary into a variable (unquoted heredoc so $RESET_MARK expands)\nSUMMARY=$(cat <<EOF\n### Deployment Summary\n\n| Key | Value |\n|-----|-------|\n| \U0001F310 Environment URL | https://${{ vars.DOMAIN }} |\n| \U0001F6E0 Core image tag | \\`${{ inputs.core-image-tag }}\\` |\n| \U0001F4E6 Country config image | \\`${{ inputs.countryconfig-image-tag }}\\` |\n| \U0001F33F Branch name | \\`${{ github.ref_name }}\\` |\n| \U0001F504 Reset environment | $RESET_MARK |\nEOF\n)\n\n# strip the leading 4-space indentation that we used for readability in the workflow,\n# then append the cleaned output to the GitHub Actions summary (single append)\necho \"$SUMMARY\" | sed 's/^ //' >> $GITHUB_STEP_SUMMARY\n"
9267
- name: Deploy OpenCRVS MOSIP API
9368
if: inputs.deploy_mosip
9469
run: |

0 commit comments

Comments
 (0)