ci: adjust label pr on open [skip ci] (#8043)
This commit is contained in:
5
.github/workflows/pr-title.yml
vendored
5
.github/workflows/pr-title.yml
vendored
@@ -107,14 +107,15 @@ jobs:
|
|||||||
label-pr-on-open:
|
label-pr-on-open:
|
||||||
name: label-pr-on-open
|
name: label-pr-on-open
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.action == 'opened'
|
||||||
steps:
|
steps:
|
||||||
- name: Tag with main branch with v2
|
- name: Tag with main branch with v2
|
||||||
if: github.event.action == 'opened' && github.event.pull_request.base.ref == 'main'
|
if: github.event.pull_request.base.ref == 'main'
|
||||||
uses: actions-ecosystem/action-add-labels@v1
|
uses: actions-ecosystem/action-add-labels@v1
|
||||||
with:
|
with:
|
||||||
labels: v2
|
labels: v2
|
||||||
- name: Tag with beta branch with v3
|
- name: Tag with beta branch with v3
|
||||||
if: github.event.action == 'opened' && github.event.pull_request.base.ref == 'beta'
|
if: github.event.pull_request.base.ref == 'beta'
|
||||||
uses: actions-ecosystem/action-add-labels@v1
|
uses: actions-ecosystem/action-add-labels@v1
|
||||||
with:
|
with:
|
||||||
labels: v3
|
labels: v3
|
||||||
|
|||||||
Reference in New Issue
Block a user