Skip to content

Commit

Permalink
Do not execute no-commit-to-branch on main
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrudlstorfer committed Dec 11, 2024
1 parent 5ff490c commit a29da58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/actions/code_check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ runs:
source python-testing-environment/bin/activate
pip install -e .[CI-CD]
pre-commit install --install-hooks
pre-commit run --all-files
if [ "${GITHUB_REF}" = "refs/heads/main" ]; then
SKIP=no-commit-to-branch pre-commit run --all-files
else
pre-commit run --all-files
fi
2 changes: 0 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
meshpy-code-check:
name: Code check
runs-on: ubuntu-latest
container:
image: ghcr.io/4c-multiphysics/4c:latest
defaults:
run:
shell: bash
Expand Down

0 comments on commit a29da58

Please sign in to comment.