We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f220384 commit 9d3dcb5Copy full SHA for 9d3dcb5
1 file changed
.github/workflows/ubuntu.yml
@@ -4,6 +4,7 @@ on:
4
jobs:
5
pre-commit:
6
runs-on: ubuntu-24.04
7
+ if: github.event_name != 'push'
8
steps:
9
- uses: actions/checkout@v4
10
with:
@@ -17,14 +18,8 @@ jobs:
17
18
python3 -m pip install -r requirements.txt
19
- name: Run pre-commit checks
20
run: |
- # For push events, compare with previous commit
21
- if [ "${{ github.event_name }}" = "push" ]; then
22
- pre-commit run --from-ref HEAD~1 --to-ref HEAD
23
- else
24
- # For PRs, compare with base branch
25
- git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
26
- pre-commit run --from-ref ${{ github.base_ref }} --to-ref HEAD
27
- fi
+ git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
+ pre-commit run --from-ref ${{ github.base_ref }} --to-ref HEAD
28
gcc-build:
29
needs:
30
- pre-commit
0 commit comments