Skip to content

Commit

Permalink
fix: issue_number
Browse files Browse the repository at this point in the history
  • Loading branch information
lgz5689 committed Jan 15, 2024
1 parent 3db0fc2 commit e28eafe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/size-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ jobs:
echo "Current Size: $CURRENT_SIZE"
- name: Comment on PR
uses: actions/github-script@v5
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { context, github } = require('@actions/github');
const prNumber = context.payload.pull_request.number;
const previousSize = process.env.PREVIOUS_SIZE;
const currentSize = process.env.CURRENT_SIZE;
Expand All @@ -81,6 +79,6 @@ jobs:
github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
issue_number: context.payload.pull_request.number,
body: message,
});

0 comments on commit e28eafe

Please sign in to comment.