-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1010 Bytes
/
check-pr-body.yaml
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
39
40
41
42
43
name: Check PR Fields
on:
pull_request:
types:
- opened
- edited
- synchronize
jobs:
check_fields:
runs-on: ubuntu-latest
if: github.event.pull_request.base.ref == 'main'
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.MY_PAT }}
fetch-depth: 0
- name: Run Script to Extract Fields
run: |
bash ./.github/scripts/extract-fields.sh "${{ github.event.pull_request.body }}"
env:
GH_TOKEN: ${{ secrets.MY_PAT }}
shell: bash
- name: echo description.txt
run: |
cat /tmp/description.txt
- name: echo jira.txt
run: |
cat /tmp/jira.txt
- name: echo pr_link.txt
run: |
cat /tmp/pr_link.txt
- name: Run Python Script to Check Fields
run: |
python ./.github/scripts/check-pr-fields.py "${{ github.event.pull_request.number }}"
env:
GITHUB_TOKEN: ${{ secrets.MY_PAT }}