From 189c19486cd1652ff444f95a15c35955f4b57c0b Mon Sep 17 00:00:00 2001 From: csuzhangxc Date: Sat, 8 Feb 2025 11:28:42 +0800 Subject: [PATCH] chore: add v2 Label automatically --- .github/workflows/auto-job-v2.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/auto-job-v2.yaml diff --git a/.github/workflows/auto-job-v2.yaml b/.github/workflows/auto-job-v2.yaml new file mode 100644 index 0000000000..04a364d32a --- /dev/null +++ b/.github/workflows/auto-job-v2.yaml @@ -0,0 +1,22 @@ +name: auto-job-v2 + +on: + pull_request: + types: [opened, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + add-v2-label: + runs-on: ubuntu-24.04 + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Add v2 label if target branch is feature/v2 + if: github.event.pull_request.base.ref == 'feature/v2' + uses: actions-ecosystem/action-add-labels@v1 + with: + labels: 'v2'