Skip to content

Commit

Permalink
I hate this CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonDev07 committed Sep 23, 2024
1 parent 6200622 commit 03132fb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const github = require('@actions/github');
const { owner, repo } = github.context.repo;
const pull_request = github.context.payload.pull_request;
const { context, getOctokit } = require('@actions/github');
const { owner, repo } = context.repo;
const pull_request = context.payload.pull_request;
if (pull_request) {
await github.repos.createCommitStatus({
const octokit = getOctokit(process.env.GITHUB_TOKEN);
await octokit.repos.createCommitStatus({
owner,
repo,
sha: pull_request.head.sha,
Expand Down

0 comments on commit 03132fb

Please sign in to comment.