-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into spope/11967-duplicate-messages
* main: chore: Codeclimate deployment action (#280)
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
# If using sd on macos, "brew install" works great. for Linux, this is the recommended way. | ||
- name: Install sd CLI to use later in the workflow | ||
# uses: kenji-miyake/setup-sd@v1 | ||
uses: levibostian/setup-sd@add-file-extension # Using fork until upstream Action has bug fixed in it. | ||
uses: levibostian/setup-sd@add-file-extension # Using fork until upstream Action has bug fixed in it. | ||
|
||
# Semantic-release tool is used to: | ||
# 1. Determine the next semantic version for the software during deployment. | ||
|
@@ -84,6 +84,14 @@ jobs: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFY_RELEASES_WEBHOOK_URL }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
|
||
- name: Send Velocity Deployment | ||
uses: codeclimate/[email protected] | ||
if: steps.semantic-release.outputs.new_release_published == 'true' # only run if a git tag was made. | ||
with: | ||
token: ${{ secrets.VELOCITY_DEPLOYMENT_TOKEN }} | ||
version: ${{ steps.semantic-release.outputs.new_release_version }} | ||
environment: production | ||
|
||
- name: Notify team of failure | ||
uses: slackapi/[email protected] | ||
if: ${{ failure() }} # only run this if any previous step failed | ||
|