diff --git a/.github/workflows/build-genai.yml b/.github/workflows/build-genai.yml index 62f31fcbc9..535b44c75a 100644 --- a/.github/workflows/build-genai.yml +++ b/.github/workflows/build-genai.yml @@ -10,7 +10,9 @@ on: - "packages/core/**" - "packages/sample/**" - "packages/cli/**" - +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16cc533c6a..a67de355c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,12 +5,15 @@ on: branches: [main] pull_request: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: runs-on: ubuntu-latest strategy: - matrix: - node-version: [20, 22] + matrix: + node-version: [20, 22] steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/genai-alt-text.yml b/.github/workflows/genai-alt-text.yml index 31d305d584..ff4d4c98ba 100644 --- a/.github/workflows/genai-alt-text.yml +++ b/.github/workflows/genai-alt-text.yml @@ -6,7 +6,9 @@ on: pull_request: paths: - "docs/src/**/*.png" - +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/genai-frontmatter.yml b/.github/workflows/genai-frontmatter.yml index 6c81dcf3ea..b2b24ccfec 100644 --- a/.github/workflows/genai-frontmatter.yml +++ b/.github/workflows/genai-frontmatter.yml @@ -7,6 +7,9 @@ on: paths: - "docs/src/**/*.md" - "docs/src/**/*.mdx" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/genai-pr-review.yml b/.github/workflows/genai-pr-review.yml index a41a24160f..3b4b51f576 100644 --- a/.github/workflows/genai-pr-review.yml +++ b/.github/workflows/genai-pr-review.yml @@ -7,6 +7,9 @@ on: - "packages/core/**/*" - "packages/cli/**/*" - "packages/samples/**/*" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/ollama.yml b/.github/workflows/ollama.yml index 10d3663b31..55b361e9a8 100644 --- a/.github/workflows/ollama.yml +++ b/.github/workflows/ollama.yml @@ -17,6 +17,9 @@ on: - "packages/core/**/*" - "packages/cli/**/*" - "packages/samples/**/*" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: tests: runs-on: ubuntu-latest diff --git a/packages/core/src/github.ts b/packages/core/src/github.ts index 7a978c5971..720bb10639 100644 --- a/packages/core/src/github.ts +++ b/packages/core/src/github.ts @@ -280,6 +280,8 @@ export async function githubCreatePullRequestReviews( return false } + // query existing reviews + // code annotations for (const annotation of annotations) { await githubCreatePullRequestReview(script, info, token, annotation)