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

Commit

Permalink
Merge pull request #99 from Axway/APIGOV-27843
Browse files Browse the repository at this point in the history
APIGOV-27843 - final changes for tagging
  • Loading branch information
dfeldick authored May 7, 2024
2 parents 3d5b80a + 88b17eb commit bfa873b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ twistlock-discovery:on-schedule:
- !reference [.mirror-schedule-csr-rules, rules]
dependencies: []
variables:
# need to override this variable for github agents because the tag willneed the 'v' if it exists
NO_V_RELEASE_TAG_REGEX: "^v?[0-9]{1,}\\.[0-9]{1,}\\.[0-9]{1,}$"
before_script:
- !reference [.get-agent-last-tag, script]
Expand Down
20 changes: 10 additions & 10 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ 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} =~ $pat ]]; then
echo "This is an interim release... post to Teams skipped"
return 0
fi

return 0
}

Expand All @@ -50,6 +43,13 @@ get_sdk_version()
}

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

rel_date=$(date +'%m/%d/%Y')
JSON="{
\"@type\": \"MessageCard\",
Expand All @@ -65,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 bfa873b

Please sign in to comment.