Skip to content

Commit

Permalink
try different way to determine changes for upgrade dep
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Nov 2, 2022
1 parent b994c47 commit a4733c6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/upgrade-dependencies.yml
Expand Up @@ -27,16 +27,11 @@ jobs:
cd ${{ matrix.package }}
pip-compile --upgrade -o requirements/${{ matrix.os }}_py${{ matrix.python-version }}.txt
pip-compile --upgrade --all-extras -o requirements/${{ matrix.os }}_py${{ matrix.python-version }}_extras.txt
- name: Detect changes on windows
id: changes_windows
if: ${{ matrix.os }} == "windows-latest"
run: echo "count=$(git status --porcelain=v1 2>nul | wc -l)" >> $GITHUB_OUTPUT
- name: Detect changes on other OSs
- name: Detect changes
id: changes
if: ${{ matrix.os }} != "windows-latest"
run: echo "count=$(git status --porcelain=v1 2>/dev/null | wc -l)" >> $GITHUB_OUTPUT
run: echo "count=$(git diff-index --quiet HEAD)" >> $GITHUB_OUTPUT
- name: commit & push changes
if: steps.changes.outputs.count > 0 || steps.changes_windows.outputs.count > 0
if: steps.changes.outputs.count > 0
run: |
git config user.name github-actions
git config user.email github-actions@github.com
Expand Down

0 comments on commit a4733c6

Please sign in to comment.