Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
APIGOV-27843 - test pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
dfeldickgit committed May 7, 2024
1 parent 9d861ff commit ee9a8ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ twistlock-discovery:on-schedule:
rules:
- !reference [.mirror-schedule-csr-rules, rules]
dependencies: []
variables:
NO_V_RELEASE_TAG_REGEX: "^v?[0-9]{1,}\\.[0-9]{1,}\\.[0-9]{1,}$"
before_script:
- !reference [.get-agent-last-tag, script]
- echo "Using the last tagged version ${LAST_TAG_VERSION}"
Expand Down
13 changes: 10 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ check_required_variables() {
exit 1
fi

# don't post if this is a pre-release tag
pat='[0-9]+\.[0-9]+\.[0-9]-'
if [[ ${TAG} =~ ]]; then
echo "This is an interim release... post to Teams skipped"
return 0
fi

return 0
}

Expand Down Expand Up @@ -58,9 +65,9 @@ post_to_teams() {
}]
}]
}"
curl -v ${TEAMS_WEBHOOK_URL} \
-H 'Content-Type: application/json' \
-d "${JSON}" &> /dev/null
# curl -v ${TEAMS_WEBHOOK_URL} \
# -H 'Content-Type: application/json' \
# -d "${JSON}" &> /dev/null
}

main() {
Expand Down

0 comments on commit ee9a8ad

Please sign in to comment.