From a2f09e9e23918e74c9f366ad0a7b662b94ada7a1 Mon Sep 17 00:00:00 2001 From: Adam K Dean Date: Fri, 31 Jul 2020 12:25:40 +0100 Subject: [PATCH] change name to simple-slack-notify and bump version to 1.0.1 --- README.md | 20 ++++++++++---------- action.yml | 6 +++--- dist/index.js | 14 ++++++++------ package-lock.json | 4 ++-- package.json | 8 ++++---- src/index.js | 14 ++++++++------ 6 files changed, 35 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 9050e0e..d3d2c6b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# slack-notify +# Simple Slack Notify [![Latest Stable Version](https://img.shields.io/packagist/v/adamkdean/slack-notify?label=version)](https://packagist.org/packages/adamkdean/slack-notify) [![Release date](https://img.shields.io/github/release-date/adamkdean/slack-notify)](https://packagist.org/packages/adamkdean/slack-notify) [![License](https://img.shields.io/packagist/l/adamkdean/slack-notify)](https://packagist.org/packages/adamkdean/slack-notify) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com) -Slack notification action that doesn't suck +Slack notification action that just works ## Introduction @@ -21,7 +21,7 @@ The simplest use would consist of relying on the webook's defaults and simply pr ``` - name: Simple notification - uses: adamkdean/slack-notify@master + uses: adamkdean/simple-slack-notify@master with: text: 'This is the simplest notification' ``` @@ -30,7 +30,7 @@ Overriding the channel is sometimes needed, such as to separate out builds, depl ``` - name: Channel specific notification - uses: adamkdean/slack-notify@master + uses: adamkdean/simple-slack-notify@master with: channel: '#alerts' text: 'Something is happening and someone should probably panic' @@ -42,7 +42,7 @@ You can use `danger`, `warning`, `good`, or a hex code such as `#d90000`. ``` - name: Panic inducing notification - uses: adamkdean/slack-notify@master + uses: adamkdean/simple-slack-notify@master with: channel: '#alerts' text: 'Something is happening and someone should probably panic' @@ -53,7 +53,7 @@ Perhaps you also want to change the username? ``` - name: Panic Bot notification - uses: adamkdean/slack-notify@master + uses: adamkdean/simple-slack-notify@master with: channel: '#alerts' username: 'Panic Bot' @@ -65,7 +65,7 @@ The action also supports fields, but due to the limitations of GitHub actions on ``` - name: Specifying what to panic about notification - uses: adamkdean/slack-notify@master + uses: adamkdean/simple-slack-notify@master with: channel: '#alerts' username: 'Panic Bot' @@ -79,7 +79,7 @@ If there were multiple reasons to panic, you'd add more objects to the fields ar ``` - name: Specifying what to panic about notification - uses: adamkdean/slack-notify@master + uses: adamkdean/simple-slack-notify@master with: channel: '#alerts' username: 'Panic Bot' @@ -94,7 +94,7 @@ Did you notice that some JavaScript snook in? Input strings are evaluated as a J ``` - name: Environment variable notification - uses: adamkdean/slack-notify@master + uses: adamkdean/simple-slack-notify@master with: channel: '#example' text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) has finished' @@ -108,7 +108,7 @@ Now, each job has a status, which can be `success`, `failed`, or `cancelled`. Mo ``` - name: Build notification if: always() - uses: adamkdean/slack-notify@master + uses: adamkdean/simple-slack-notify@master with: channel: '#builds' status: ${{ job.status }} diff --git a/action.yml b/action.yml index df05f8f..e87c47c 100644 --- a/action.yml +++ b/action.yml @@ -1,7 +1,7 @@ -name: 'Slack Notify' -description: "Slack Notification action that doesn't suck" +name: 'Simple Slack Notify' +description: "Slack notification action that just works" branding: - icon: 'slack' + icon: 'message-circle' color: 'purple' runs: using: 'node12' diff --git a/dist/index.js b/dist/index.js index ad0a461..817213c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2961,12 +2961,14 @@ module.exports = function httpAdapter(config) { /***/ 676: /***/ (function(__unusedmodule, __unusedexports, __webpack_require__) { -// ___ _ _ _ _ _ _ __ -// / __| |__ _ __| |__ | \| |___| |_(_)/ _|_ _ -// \__ \ / _` / _| / / | .` / _ \ _| | _| || | -// |___/_\__,_\__|_\_\ |_|\_\___/\__|_|_| \_, | -// |__/ -// Slack notification action that doesn't suck +// ___ _ _ +// / __(_)_ __ _ __| |___ +// \__ \ | ' \| '_ \ / -_) +// ___ |___/_|_|_|_| .__/_\___| _ _ __ +// / __| |__ _ __| ||_|| \| |___| |_(_)/ _|_ _ +// \__ \ / _` / _| / / | .` / _ \ _| | _| || | +// |___/_\__,_\__|_\_\ |_|\_\___/\__|_|_| \_, | +// Slack notification action that just works |__/ // Copyright 2020 Adam K Dean const core = __webpack_require__(470) diff --git a/package-lock.json b/package-lock.json index e728b8f..541fb7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { - "name": "slack-notify", - "version": "0.0.0", + "name": "simple-slack-notify", + "version": "1.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 74be189..806355f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "slack-notify", - "version": "1.0.0", - "description": "Slack notification action that doesn't suck", + "name": "simple-slack-notify", + "version": "1.0.1", + "description": "Slack notification action that just works", "author": "Adam K Dean ", "license": "MIT", "keywords": [ @@ -13,7 +13,7 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/adamkdean/slack-notify.git" + "url": "git+https://github.com/adamkdean/simple-slack-notify.git" }, "main": "dist/index.js", "scripts": { diff --git a/src/index.js b/src/index.js index faf1798..3a0bc58 100644 --- a/src/index.js +++ b/src/index.js @@ -1,9 +1,11 @@ -// ___ _ _ _ _ _ _ __ -// / __| |__ _ __| |__ | \| |___| |_(_)/ _|_ _ -// \__ \ / _` / _| / / | .` / _ \ _| | _| || | -// |___/_\__,_\__|_\_\ |_|\_\___/\__|_|_| \_, | -// |__/ -// Slack notification action that doesn't suck +// ___ _ _ +// / __(_)_ __ _ __| |___ +// \__ \ | ' \| '_ \ / -_) +// ___ |___/_|_|_|_| .__/_\___| _ _ __ +// / __| |__ _ __| ||_|| \| |___| |_(_)/ _|_ _ +// \__ \ / _` / _| / / | .` / _ \ _| | _| || | +// |___/_\__,_\__|_\_\ |_|\_\___/\__|_|_| \_, | +// Slack notification action that just works |__/ // Copyright 2020 Adam K Dean const core = require('@actions/core')