Skip to content

Commit

Permalink
Add Slack Notification step
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouball committed Dec 17, 2023
1 parent 8551565 commit cc00f0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/actions/job-info/dist/index.js

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

5 changes: 4 additions & 1 deletion .github/actions/job-info/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const core = require('@actions/core');
const github = require('@actions/github');
const Handlebars = require('handlebars');
const fs = require('fs');
const path = require('path');

// Prototype for the workflow run object:
//
Expand Down Expand Up @@ -108,8 +109,10 @@ async function run() {
const workflowRun = await workflowRunObject();
// core.info(JSON.stringify(workflowRun, null, 2));

const templatePath = path.join(__dirname, 'message.hbs');

// Read the template file
const source = fs.readFileSync('message.hbs', 'utf-8');
const source = fs.readFileSync(templatePath, 'utf-8');

// Compile the template
const template = Handlebars.compile(source);
Expand Down

0 comments on commit cc00f0f

Please sign in to comment.