forked from MicrosoftDocs/PowerShell-Docs
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 869 Bytes
/
quality.pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "Quality Contributions"
on:
pull_request_target:
branches:
- main
types:
- opened
- reopened
- edited
defaults:
run:
shell: pwsh
jobs:
# Check if the PR is for quality contributions; all other jobs depend on this one.
check:
name: Is Quality Contribution?
outputs:
title: ${{ steps.title.outputs.check == 'true' }}
runs-on: ubuntu-latest
steps:
- id: title
run: |
$Check = "${{ contains(github.event.pull_request.title, 'Quality:') }}"
"Check: $Check"
"check=$Check" >> $env:GITHUB_OUTPUT
project:
name: Add pull request to project
needs: check
if: |
needs.check.outputs.title == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: project-quality