Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created April 10, 2023 00:12
Show Gist options
  • Save KyMidd/57005a0d74edb2c9fee5feac59986a4d to your computer and use it in GitHub Desktop.
Save KyMidd/57005a0d74edb2c9fee5feac59986a4d to your computer and use it in GitHub Desktop.
# If AUTOLINK_REFERENCES_TO_BUILD_LENGTH is 0, then all auto-link references already exist
if [[ $AUTOLINK_REFERENCES_TO_BUILD_LENGTH -eq 0 ]]; then
echo "ℹ️ All $AUTOLINK_JIRA_PROJECT_KEYS_LENGTH Jira auto-link references already exist, skipping"
# If there are failures, print error message
elif [[ $CREATE_AUTOLINK_REFERENCE_FAILURES_LENGTH -gt 0 ]]; then
echo "ℹ️ $CREATE_AUTOLINK_REFERENCE_SUCCESSES_LENGTH/$AUTOLINK_REFERENCES_TO_BUILD_LENGTH auto-link references created, but some failures ($CREATE_AUTOLINK_REFERENCE_FAILURES_LENGTH/$AUTOLINK_JIRA_PROJECT_KEYS_LENGTH), please investigate"
# If there are no failures, print success message
else
echo "💥 Successfully created $CREATE_AUTOLINK_REFERENCE_SUCCESSES_LENGTH auto-link reference for all $AUTOLINK_JIRA_PROJECT_KEYS_LENGTH configured Jira project keys"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment