Skip to content

Commit

Permalink
ci(label): vars
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Aug 16, 2023
1 parent 1cd6c06 commit 63fc5cd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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;
Expand All @@ -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,
Expand Down Expand Up @@ -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])
}

0 comments on commit 63fc5cd

Please sign in to comment.