Skip to content

Commit

Permalink
Try fix in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
HomesGH committed Sep 23, 2024
1 parent c54c52c commit 15e77ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ls1_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ jobs:
uses: actions/github-script@v7
with:
script: |
var fs = require('fs');
var pr_number = Number(fs.readFileSync('./NR'));
const { context, github } = require('@actions/github');
const pr_number = context.issue.number;
await github.rest.issues.createComment({
issue_number: pr_number,
owner: context.repo.owner,
repo: context.repo.repo,
body: ':warning: The CI detected formatting issues in this pull request. '
+ 'Please run clang-format locally to resolve them.\n'
+ 'Details are shown in the [job log](https://github.com/'
+ context.repo.owner + '/' + context.repo.repo + '/actions/runs/' + ${{ github.event.workflow_run.id }} + ').'
+ context.repo.owner + '/' + context.repo.repo + '/actions/runs/' + context.runId + ').'
});
- name: Exit with failure if clang-format found issues
Expand Down

0 comments on commit 15e77ed

Please sign in to comment.