Skip to content

Commit

Permalink
ci: Fix for a bug in the bundle size workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
connorlanigan authored Jul 20, 2023
1 parent 5881b58 commit d77cd80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/bundle-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,11 @@ jobs:
const message = `${(pr / 1000).toFixed(1)} KB (${sign}${increasePercent} % / ${sign}${increaseKb} KB in this pull request)`
const name = "Bundle size";
await github.rest.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.payload.pull_request.head.sha,
context: name,
context: "Bundle size",
state: 'success',
description: message,
target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`
Expand All @@ -163,7 +162,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.payload.pull_request.head.sha,
context: name,
context: "Bundle size",
state: 'error',
description: "The workflow encountered an error.",
target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`
Expand Down

0 comments on commit d77cd80

Please sign in to comment.