File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 19
19
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20
20
with :
21
21
submodules : recursive
22
- - name : Update submodules
23
- run : git submodule update --remote --recursive
22
+ # - name: Update submodules
23
+ # run: git submodule update --remote --recursive
24
24
- uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
25
25
id : setup_node_id
26
26
with :
39
39
- name : Generate code
40
40
run : python3 generate-code.py
41
41
- run : |
42
- diff=$(git --no-pager diff --name-only)
43
- echo "DIFF_IS_EMPTY=$([[ -z "$diff" ]] && echo 'true' || echo 'false')" >> $GITHUB_ENV
42
+ diff_files=$(git --no-pager diff --name-only)
43
+ diff_excluding_submodule=$(echo "$diff" | grep -v '^line-openapi$' || true)
44
+ echo "DIFF_IS_EMPTY=$([[ -z "diff_excluding_submodule" ]] && echo 'true' || echo 'false')" >> $GITHUB_ENV
44
45
echo "CURRENT_DATETIME=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
45
46
# # Run if diff exists and pull request, and make CI status failure (but allow renovate bot)
46
47
- 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