blob: 8db5d2eb6771b7bcba20e357f51d144964e0b523 (
plain) (
blame)
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
|
name: "validate-pr-description"
runs:
using: "composite"
steps:
- name: Run validation script
id: validate
shell: bash
env:
GITHUB_TOKEN: ${{ github.token }}
PR_BODY: ${{ inputs.pr_body}}
run: |
python3 -m pip install PyGithub
echo "$PR_BODY" | python3 ${{ github.action_path }}/validate_pr_description.py
inputs:
pr_body:
description: "The body of the pull request."
required: true
outputs:
status:
description: "The status of the PR description validation."
value: ${{ steps.validate.outcome }}
files:
- validate_pr_description.py
|