Skip to content

Remove key since it creates a list of nested dict. #1

Remove key since it creates a list of nested dict.

Remove key since it creates a list of nested dict. #1

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