diff --git a/.github/workflows/upgrade-dependencies.yml b/.github/workflows/upgrade-dependencies.yml index 5519739ad..89c03aad3 100644 --- a/.github/workflows/upgrade-dependencies.yml +++ b/.github/workflows/upgrade-dependencies.yml @@ -35,10 +35,10 @@ jobs: id: changes shell: bash run: | - sha1=$(git diff-index HEAD | awk '{print $4}') - [[ $sha1 == "0000000000000000000000000000000000000000" ]] && git update-index --really-refresh - echo "count=$(git diff-index HEAD | wc -l | xargs)" >> $GITHUB_OUTPUT - echo "files=$(git ls-files --exclude-standard --others | wc -l | xargs)" >> $GITHUB_OUTPUT + sha1=$(git diff-index HEAD ${{ matrix.package }}/requirements | awk '{print $4}') + [[ $sha1 == "0000000000000000000000000000000000000000" ]] && git update-index --really-refresh ${{ matrix.package }}/requirements + echo "count=$(git diff-index HEAD ${{ matrix.package }}/requirements | wc -l | xargs)" >> $GITHUB_OUTPUT + echo "files=$(git ls-files --exclude-standard --others ${{ matrix.package }}/requirements | wc -l | xargs)" >> $GITHUB_OUTPUT - name: commit & push changes if: steps.changes.outputs.count > 0 || steps.changes.outputs.files > 0 shell: bash