Merge pull request #34698 from openedx/feanil/script_requirements

fix: Include script requirements in upgrade.
This commit is contained in:
Feanil Patel
2024-05-06 16:46:40 -04:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ jobs:
echo $'Paths touched in PR:\n'"$paths"
# The ^"? is because git may quote weird file paths
matched="$(echo "$paths" | grep -P '^"?requirements/' || true)"
matched="$(echo "$paths" | grep -P '^"?((requirements/)|(scripts/.*?/requirements/))' || true)"
echo $'Relevant paths:\n'"$matched"
if [[ -n "$matched" ]]; then
echo "RELEVANT=true" >> "$GITHUB_ENV"

View File

@@ -86,7 +86,9 @@ jobs:
with:
branch: "${{ github.triggering_actor }}/upgrade-${{ inputs.package }}"
branch-suffix: short-commit-hash
add-paths: requirements
add-paths: |
requirements
scripts/**/requirements
commit-message: |
feat: Upgrade Python dependency ${{ inputs.package }}