Skip to content

Commit 5351cd7

Browse files
chore: update PR format workflow to exempt changeset PRs from label requirements (#330)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Zac Rosenbauer <zac@joggr.io>
1 parent 9c87fa7 commit 5351cd7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci-pr-format.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,22 @@ jobs:
1717
issues: write
1818
pull-requests: write
1919
steps:
20+
- name: Extract branch name
21+
id: extract-branch
22+
run: |
23+
BRANCH_NAME="${{ github.head_ref }}"
24+
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
25+
2026
- name: '🏷️ Validate Labels: Semver'
27+
if: ${{ !startsWith(steps.extract-branch.outputs.branch_name, 'changeset-release/') }}
2128
uses: mheap/github-action-required-labels@v5
2229
with:
2330
mode: exactly
2431
count: 1
2532
labels: "semver:.*"
2633
use_regex: true
2734
- name: '🏷️ Validate Labels: Type'
35+
if: ${{ !startsWith(steps.extract-branch.outputs.branch_name, 'changeset-release/') }}
2836
uses: mheap/github-action-required-labels@v5
2937
with:
3038
mode: exactly

0 commit comments

Comments
 (0)