Skip to content

Commit

Permalink
Bump version 1.2.1 -> 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
satterly committed Nov 25, 2020
1 parent d7e5c41 commit e4e7168
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Expand Up @@ -103,14 +103,15 @@ After testing you can [create a v1 tag](https://github.com/actions/toolkit/blob/
## Release

```bash
$ make build
$ vi package.json
$ vi package-lock.json
$ git add .
$ git commit -m 'Bump version 1.0.13 -> 1.1.0'
$ git tag -a v1.1.0 -m 'version 1.1.0'
$ git push --follow-tags
git tag -fa v1 -m "Update v1 tag"
git push origin v1 --force
$ git tag -fa v1 -m "Update v1 tag"
$ git push origin v1 --force
```

Go to [GitHub Releases]() and create a new release
Expand Down
9 changes: 7 additions & 2 deletions dist/index.js
Expand Up @@ -1423,8 +1423,13 @@ function run() {
const jobStatus = core.getInput('status', { required: true }).toUpperCase();
const jobSteps = JSON.parse(core.getInput('steps', { required: false }) || '{}');
const channel = core.getInput('channel', { required: false });
yield slack_1.default(url, jobName, jobStatus, jobSteps, channel);
core.debug('Sent to Slack.');
if (url) {
yield slack_1.default(url, jobName, jobStatus, jobSteps, channel);
core.debug('Sent to Slack.');
}
else {
core.info('No "SLACK_WEBHOOK_URL" secret configured. Skip.');
}
}
catch (error) {
core.setFailed(error.message);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "slack",
"version": "1.2.1",
"version": "1.2.2",
"private": true,
"description": "Notify Slack of GitHub Actions job and step status.",
"main": "lib/main.js",
Expand Down

0 comments on commit e4e7168

Please sign in to comment.