Skip to content

Commit

Permalink
ENH: show diff of lock files before push (#70)
Browse files Browse the repository at this point in the history
* ENH: show changed files with color
* MAINT: switch to release branch ComPWA/update-pre-commit@v1
  • Loading branch information
redeboer authored Mar 12, 2024
1 parent 0f41cd7 commit bdefd7a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: ComPWA/update-pre-commit@main
- uses: ComPWA/update-pre-commit@v1

pr-exists:
name: Check if PR already exists
Expand Down Expand Up @@ -116,7 +116,12 @@ jobs:
[[ ! -f .gitignore ]] && echo '!py3.*.txt' > .gitignore
cd ../
fi
- run: git status -s
- name: Show changed files
run: |
git config --global color.ui always
git status --short
- name: Show changes
run: git diff --color --unified=0
- name: Commit and push changes
if: github.event_name == 'pull_request'
run: |
Expand Down

0 comments on commit bdefd7a

Please sign in to comment.