From 3719c22d8117cffa8e413f54d502871264680aa4 Mon Sep 17 00:00:00 2001 From: Delicious233 <101502465+DeliciousBuding@users.noreply.github.com> Date: Wed, 15 Jul 2026 02:40:14 +0800 Subject: [PATCH] ci(actions): S1 add concurrency to workflows --- .github/workflows/backfill-pr-labels.yml | 4 ++++ .github/workflows/cd-slim.yml | 4 ++++ .github/workflows/labeler.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/backfill-pr-labels.yml b/.github/workflows/backfill-pr-labels.yml index 6d02fcd..2f6be08 100644 --- a/.github/workflows/backfill-pr-labels.yml +++ b/.github/workflows/backfill-pr-labels.yml @@ -18,6 +18,10 @@ on: default: "100" type: string +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + permissions: contents: read pull-requests: write diff --git a/.github/workflows/cd-slim.yml b/.github/workflows/cd-slim.yml index 8cf2575..c078052 100644 --- a/.github/workflows/cd-slim.yml +++ b/.github/workflows/cd-slim.yml @@ -12,6 +12,10 @@ on: - ".github/workflows/cd-slim.yml" workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: REGISTRY: ghcr.io IMAGE_NAME: ghcr.io/tokendancelab/metapi diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 12a7305..570e558 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -4,6 +4,10 @@ on: pull_request_target: types: [opened, synchronize, reopened, ready_for_review] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + permissions: contents: read pull-requests: write