Skip to content

Commit

Permalink
Update EVENT_merge_to_master.yml with V3 > V7 github-script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWilkie committed Jun 6, 2024
1 parent ba1fd9c commit d5ca080
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/EVENT_merge_to_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.sha,
state: 'success'
})
const { context } = require('@actions/github');
const { owner, repo } = context.repo;
const sha = context.sha;
await github.rest.repos.createCommitStatus({
owner: owner,
repo: repo,
sha: sha,
state: 'success',
context: 'continuous-integration/github-action',
description: 'The build succeeded!'
});

0 comments on commit d5ca080

Please sign in to comment.