Skip to content

Commit

Permalink
Update coveralls update job
Browse files Browse the repository at this point in the history
Since github-script v5, the correct syntax for adding
a comment is github.rest.issues.createComment
instead of github.issues.createComment

Also updates the github-script to latest available
version
  • Loading branch information
vkmc committed Aug 26, 2024
1 parent 1e641f9 commit c1ad7e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: update PR with coveralls badge
uses: actions/github-script@v7
uses: actions/github-script@v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
var BRANCH_NAME = process.env.BRANCH_NAME;
github.issues.createComment({
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit c1ad7e0

Please sign in to comment.