Skip to content

[The Hive] Pre-Commit and format #78787

[The Hive] Pre-Commit and format

[The Hive] Pre-Commit and format #78787

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/changed-files@v35.1.0
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@v3
with:
python-version: '3.10'
- name: Setup Poetry
if: ${{ steps.changed-files.outputs.all_changed_files }}
uses: Gr1N/setup-poetry@v8
- name: Install python dependencies
if: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
poetry install --with ci
- 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 --use-git --use-packs-known-words --known-words ./Tests/known_words.txt --console-log-threshold INFO