File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -136,12 +136,14 @@ jobs:
136
136
EXCLUDE_COMMIT : ${{ github.event.after }}
137
137
run : python3 -u ci_changes_per_commit.py
138
138
- name : Set base sha
139
+ if : github.event_name == 'pull_request'
139
140
run : |
140
141
DEEPEN=$((DEPTH - $(git rev-list HEAD --count))) && if((DEEPEN > 0)); then git fetch --no-tags --recurse-submodules=no --deepen=$DEEPEN; fi
141
142
echo "BASE_SHA=$(git rev-list $GITHUB_SHA --skip=$((DEPTH + 1)) --max-count=1)" >> $GITHUB_ENV
142
143
env :
143
144
DEPTH : ${{ steps.get-last-commit-with-checks.outputs.commit_depth || github.event.pull_request.commits }}
144
145
- name : Set head sha
146
+ if : github.event_name == 'pull_request'
145
147
run : echo "HEAD_SHA=$(git rev-list $GITHUB_SHA --skip=1 --max-count=1)" >> $GITHUB_ENV
146
148
- name : Get changes
147
149
id : get-changes
You can’t perform that action at this time.
0 commit comments