Skip to content

Commit

Permalink
chore: add v2 Label automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Feb 8, 2025
1 parent fa5d80e commit 189c194
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/auto-job-v2.yaml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 189c194

Please sign in to comment.