Skip to content

[TASK] Test changes #47

[TASK] Test changes

[TASK] Test changes #47

Workflow file for this run

name: Check and Fix Whitespace
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install pre-commit
run: pip install pre-commit
- name: Configure Git
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
- name: Run pre-commit hooks
id: pre-commit
run: |
pre-commit run --all-files --hook-stage=manual
# Capture the status code from pre-commit
STATUS=$?
if [ $STATUS -ne 0 ]; then
echo "Pre-commit hooks found issues and failed."
exit 1
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Debug
run: |
echo "Git status:"
git status
echo "Git diff:"
git diff --cached