Skip to content

Commit 1e40921

Browse files
authored
Update labels.yml
1 parent fb75151 commit 1e40921

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/labels.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
steps:
2727
- name: Label Original PRs if backport PR
2828
continue-on-error: true
29-
if: ${{ github.event.action == 'opened' && startsWith(github.event.pull_request.base.ref, 'release/v') && startsWith(github.event.pull_request.title, '[release/v') }}
3029
uses: actions/github-script@v7
3130
with:
3231
script: |
@@ -49,7 +48,31 @@ jobs:
4948
} else {
5049
console.log("No original PR number found in the description.");
5150
}
51+
52+
test-conditions:
53+
permissions:
54+
contents: read
55+
56+
name: test conditions
57+
if: (github.repository_owner == 'PowerShell' || github.repository_owner == 'TravisEz13')
58+
runs-on: ubuntu-latest
5259

60+
steps:
61+
- name: If Opened
62+
continue-on-error: true
63+
if: github.event.action == 'opened'
64+
run: echo "yes"
65+
66+
- name: If ref starts with
67+
continue-on-error: true
68+
if: startsWith(github.event.pull_request.base.ref, 'release/v')
69+
run: echo "yes"
70+
71+
- name: If title starts with
72+
continue-on-error: true
73+
if: startsWith(github.event.pull_request.title, '[release/v') }}
74+
run: echo "yes"
75+
5376
verify-labels:
5477
name: Verify Change Log Labels
5578
if: github.repository_owner == 'PowerShell'

0 commit comments

Comments
 (0)