Skip to content

Commit

Permalink
Merge 98e1d2c into b77aaa3
Browse files Browse the repository at this point in the history
  • Loading branch information
domoscargin authored May 11, 2023
2 parents b77aaa3 + 98e1d2c commit 83da58c
Show file tree
Hide file tree
Showing 8 changed files with 407 additions and 19 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/diff-change-to-dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const fs = require('fs').promises
const diff = await fs.readFile(
process.env.GITHUB_WORKSPACE + '/dist.diff', 'utf8'
const { readFile } = require('node:fs/promises')
const { GITHUB_WORKSPACE } = process.env
const { join } = require('node:path')
const { commentOnPr } = await import(
`${GITHUB_WORKSPACE}/shared/stats/comment.mjs`
)
const diff = await readFile(
join(GITHUB_WORKSPACE, 'dist.diff'), 'utf8'
)
const commentText = '## Changes to dist\n' +
'```diff\n' +
diff +
'\n```'
github.rest.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: commentText
})
await commentOnPr({ github, context }, 'Diff release', commentText)
2 changes: 1 addition & 1 deletion dist/govuk-frontend-4.6.0.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 83da58c

Please sign in to comment.