File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 31
31
run : |
32
32
python generate-code.py
33
33
34
- diff=$(git --no-pager diff --name-only HEAD)
35
- echo "DIFF_IS_EMPTY=$([[ -z "$diff" ]] && echo 'true' || echo 'false')" >> $GITHUB_ENV
34
+ diff_files=$(git --no-pager diff --name-only)
35
+ diff_excluding_submodule=$(echo "$diff_files" | grep -v '^line-openapi$' || true)
36
+
37
+ echo "diff files: $diff_files"
38
+ echo "diff excluding submodule: $diff_excluding_submodule"
39
+
40
+ echo "DIFF_IS_EMPTY=$([[ -z "$diff_excluding_submodule" ]] && echo 'true' || echo 'false')" >> $GITHUB_ENV
36
41
echo "CURRENT_DATETIME=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
37
42
# # Run if diff exists and pull request, and make CI status failure (but allow renovate bot)
38
43
- if : ${{ github.event_name == 'pull_request' && env.DIFF_IS_EMPTY != 'true' && github.actor != 'renovate[bot]' }}
You can’t perform that action at this time.
0 commit comments