Skip to content

Commit

Permalink
filter changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Aug 23, 2024
1 parent 52ae6f6 commit 039ee69
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/CI_license_compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,22 @@ jobs:
with:
python-version: "${{ env.PYTHON_VERSION }}"

- name: Get direct dependencies
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: |
integrations/**/pyproject.toml
- name: Get direct dependencies from changed pyproject.toml files
if: ${{ steps['changed-files'].outputs.any_changed == 'true' }}
run: |
pip install toml
python .github/utils/pyproject_to_requirements.py pyproject.toml > ${{ env.REQUIREMENTS_FILE }}
> ${{ env.REQUIREMENTS_FILE }} # Empty the requirements file if it exists
for file in ${{ steps['changed-files'].outputs.all_changed_files }}; do
python .github/utils/pyproject_to_requirements.py $file >> ${{ env.REQUIREMENTS_FILE }}
echo "" >> ${{ env.REQUIREMENTS_FILE }} # Add a newline for separation
done
- name: Check Licenses
id: license_check_report
Expand Down

0 comments on commit 039ee69

Please sign in to comment.