Skip to content

Commit

Permalink
fix: broken link
Browse files Browse the repository at this point in the history
  • Loading branch information
pam- committed Mar 2, 2021
1 parent f233440 commit 60248a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11950,8 +11950,8 @@ function buildSlackAttachments({ status, color, github }) {
const branch = event === 'pull_request' ? payload.pull_request.head.ref : ref.replace('refs/heads/', '');

const sha = event === 'pull_request' ? payload.pull_request.head.sha : github.context.sha;
const job = process.env.GITHUB_JOB
const runId = parseInt(process.env.GITHUB_RUN_ID, 10)
const job = process.env.GITHUB_JOB;
const runId = parseInt(process.env.GITHUB_RUN_ID, 10);

const referenceLink =
event === 'pull_request'
Expand All @@ -11972,12 +11972,12 @@ function buildSlackAttachments({ status, color, github }) {
fields: [
{
title: 'Workflow',
value: `<https://github.com/${owner}/${repo}/actions/run/${runId} | ${workflow}>`,
value: `<https://github.com/${owner}/${repo}/actions/runs/${runId} | ${workflow}>`,
short: true,
},
{
title: 'Job',
value: `<https://github.com/${owner}/${repo}/actions/run/${runId} | ${job}>`,
value: `<https://github.com/${owner}/${repo}/actions/runs/${runId} | ${job}>`,
short: true,
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ function buildSlackAttachments({ status, color, github }) {
fields: [
{
title: 'Workflow',
value: `<https://github.com/${owner}/${repo}/actions/run/${runId} | ${workflow}>`,
value: `<https://github.com/${owner}/${repo}/actions/runs/${runId} | ${workflow}>`,
short: true,
},
{
title: 'Job',
value: `<https://github.com/${owner}/${repo}/actions/run/${runId} | ${job}>`,
value: `<https://github.com/${owner}/${repo}/actions/runs/${runId} | ${job}>`,
short: true,
},
{
Expand Down

0 comments on commit 60248a1

Please sign in to comment.