forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 1.05 KB
/
review-release-notes.yml
File metadata and controls
32 lines (31 loc) · 1.05 KB
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
name: Review Release Notes
on: pull_request
jobs:
release_notes_review:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content' && github.event.pull_request.head.repo.fork == false
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
with:
separator: ';'
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: Install Python Dependencies
run: python -m pip install --upgrade pip
- name: Install Demisto SDK
run: pip install demisto-sdk
- name: Review Release Notes
run: |
changed_files="${{ steps.changed-files.outputs.all_changed_files }}"
delim=';'
echo "Starting docs review"
python Utils/github_workflow_scripts/run_docs_review.py --changed_files "$changed_files" --delimiter $delim
echo "Finished docs review successfully"