diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index ed58d4fb322..65084a59a64 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -19,8 +19,6 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} - # - name: Set HEAD_SHA - # run: echo "HEAD_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV - uses: actions/github-script@v6 env: HEAD_SHA: ${{ github.event.pull_request.head.sha }} @@ -46,8 +44,6 @@ jobs: ?check_runs.filter((run) => run.name === "build") :check_runs.filter((run) => run.name === "build / macox-x86") - console.log(runs); - if (runs.length === 0) return; if (runs[0].conclusion !== "skipped") return; @@ -68,7 +64,7 @@ jobs: }); // Create check and update status - const check = async (name) => await github.rest.checks.create({ + const create = async (name) => await github.rest.checks.create({ owner, repo, name, @@ -124,11 +120,11 @@ jobs: } if (linux) { - const buildLinux = await check("build / linux"); - const buildWinCross = await check("build / win-cross"); + const buildLinux = await create("build / linux"); + const buildWinCross = await create("build / win-cross"); await update([buildLinux, buildWinCross]); } else { - const buildMacosX86 = await check("build / macos-x86"); + const buildMacosX86 = await create("build / macos-x86"); await update([buildMacosX86]) }