Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
outsinre committed Nov 15, 2023
1 parent d4aade6 commit 96334a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release-and-tests-fail-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ jobs:
const run_url = `https://github.com/${repo_name}/actions/runs/${run_id}`;
const slack_mapping = JSON.parse(process.env.SLACK_MAPPING);
const actor_github_id = "${{ github.event.workflow_run.actor.login }}";
console.log("actor_github_id");
console.log(actor_github_id);
const actor_slack_id = slack_mapping[actor_github_id];
console.log("actor_slack_id");
console.log(actor_slack_id);
const actor = actor_slack_id ? `<@${actor_slack_id}>` : actor_github_id;
const payload = {
text: `Hello ${actor} , workflow “${workflow_name}” failed in repo: "${repo_name}", branch: "${branch_name}". Please check it: ${run_url}.`,
Expand Down

0 comments on commit 96334a7

Please sign in to comment.