Skip to content

Commit

Permalink
Merge pull request #67 from bigbite/chore/add-release-notifications
Browse files Browse the repository at this point in the history
Add circleci config with slack notification
  • Loading branch information
jaymcp authored Dec 6, 2022
2 parents 4c7c229 + cb9ebe6 commit 1f9c037
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2.1

orbs:
node: circleci/node@4.7.0

jobs:
notify_slack:
docker:
- image: cimg/node:17.2.0
steps:
- run:
command: |
curl -X POST -H 'Content-type: application/json' --data '{"text":"New PHPCS Config Release","blocks":[{"type":"header","text":{"type":"plain_text","text":"New PHPCS Config Release"}},{"type":"section","fields":[{"type":"mrkdwn","text":"*Version:* <https://github.com/'${CIRCLE_PROJECT_USERNAME}'/'${CIRCLE_PROJECT_REPONAME}'/releases/tag/'${CIRCLE_TAG}'|'${CIRCLE_TAG}'>"},{"type":"mrkdwn","text":"<https://github.com/'${CIRCLE_PROJECT_USERNAME}'/'${CIRCLE_PROJECT_REPONAME}'/issues|Issues> *|* <https://github.com/'${CIRCLE_PROJECT_USERNAME}'/'${CIRCLE_PROJECT_REPONAME}'/pulls|Pull Requests>"}]}]}' ${SLACK_WEBHOOK}
name: Send Slack update to channel

workflows:
run_notify_slack:
jobs:
- notify_slack:
filters:
tags:
only: /v?[0-9]+\.[0-9]+\.[0-9]+(-(rc|beta|alpha).[0-9]+)?/
branches:
ignore: /.*/

0 comments on commit 1f9c037

Please sign in to comment.