Skip to content

Commit

Permalink
workflow test-10
Browse files Browse the repository at this point in the history
  • Loading branch information
ObedVega committed Feb 21, 2024
1 parent 9829dcb commit 27cda1b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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 } = require('@actions/github');
const artifactLink = 'link-to-your-artifact';
const { context: repoContext, github } = 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}).`;
github.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 27cda1b

Please sign in to comment.