Skip to content

Commit

Permalink
Bump version 1.3.1 -> 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
satterly committed Nov 7, 2021
1 parent 2dc791a commit 6b8881f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4011,7 +4011,16 @@ function run() {
const readEvent = () => JSON.parse(fs_1.readFileSync(event, 'utf8'));
core.debug(JSON.stringify(readEvent()));
const configFile = core.getInput('config', { required: false });
const config = yaml.load(fs_1.readFileSync(configFile, 'utf-8'), { schema: yaml.FAILSAFE_SCHEMA });
let config = {};
try {
core.info(`Reading config file ${configFile}...`);
if (fs_1.existsSync(configFile)) {
config = yaml.load(fs_1.readFileSync(configFile, 'utf-8'), { schema: yaml.FAILSAFE_SCHEMA });
}
}
catch (error) {
core.info(error.message);
}
core.debug(yaml.dump(config));
const url = process.env.SLACK_WEBHOOK_URL;
const jobName = process.env.GITHUB_JOB;
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slack",
"version": "1.3.1",
"version": "1.3.2",
"private": true,
"description": "Notify Slack of GitHub Actions job and step status.",
"main": "lib/main.js",
Expand Down

0 comments on commit 6b8881f

Please sign in to comment.