There was an error while loading. Please reload this page.
1 parent a2b4a99 commit 41bfe70Copy full SHA for 41bfe70
1 file changed
.github/workflows/pre-commit.yml
@@ -1,4 +1,4 @@
1
-# Copyright 2023-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# Copyright 2023-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
#
3
# Redistribution and use in source and binary forms, with or without
4
# modification, are permitted provided that the following conditions
@@ -34,5 +34,12 @@ jobs:
34
runs-on: ubuntu-latest
35
steps:
36
- uses: actions/checkout@v5.0.0
37
+ with:
38
+ fetch-depth: 2
39
+ - name: Get modified files
40
+ id: modified-files
41
+ run: echo "modified_files=$(git diff --name-only -r HEAD^1 HEAD | xargs)" >> $GITHUB_OUTPUT
42
- uses: actions/setup-python@v6.0.0
43
- uses: pre-commit/action@v3.0.1
44
45
+ extra_args: --files ${{ steps.modified-files.outputs.modified_files }}
0 commit comments