Skip to content

Commit

Permalink
workflow test-12
Browse files Browse the repository at this point in the history
  • Loading branch information
ObedVega committed Feb 21, 2024
1 parent 4fcefb9 commit a25aafd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { context, github: gh } = require('@actions/github');
const { context: repoContext, github: gh } = require('@actions/github');
const artifactLink = `${process.env.GITHUB_SERVER_URL}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}/artifacts`;
const commentBody = `### Lighthouse Report\n\nThe Lighthouse report is available [here](${artifactLink}).`;
gh.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: repoContext.issue.number,
owner: repoContext.repo.owner,
repo: repoContext.repo.repo,
body: commentBody
});

0 comments on commit a25aafd

Please sign in to comment.