forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.63 KB
/
review-release-notes.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
39
40
41
42
43
44
45
name: Review Release Notes
on: pull_request
env:
CHANGED_FILES_DELIMITER: ";"
jobs:
release_notes_review:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
with:
separator: ${{ env.CHANGED_FILES_DELIMITER }}
files: |
Packs/**/ReleaseNotes/**
since_last_remote_commit: false
- name: Setup Python
if: ${{ steps.changed-files.outputs.all_changed_files }}
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Setup Poetry
if: ${{ steps.changed-files.outputs.all_changed_files }}
uses: Gr1N/setup-poetry@v9
- name: Install python dependencies
if: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
poetry install --with github-actions
- name: Set Python Path
if: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: Review Release Notes
if: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
release_notes="${{ steps.changed-files.outputs.all_changed_files }}"
echo "Release notes found in PR: ${release_notes}. Starting docs review..."
poetry run demisto-sdk doc-review --release-notes --xsoar-only --use-git --use-packs-known-words --known-words ./Tests/known_words.txt --console-log-threshold INFO