File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,12 +136,14 @@ jobs:
136136 EXCLUDE_COMMIT : ${{ github.event.after }}
137137 run : python3 -u ci_changes_per_commit.py
138138 - name : Set base sha
139+ if : github.event_name == 'pull_request'
139140 run : |
140141 DEEPEN=$((DEPTH - $(git rev-list HEAD --count))) && if((DEEPEN > 0)); then git fetch --no-tags --recurse-submodules=no --deepen=$DEEPEN; fi
141142 echo "BASE_SHA=$(git rev-list $GITHUB_SHA --skip=$((DEPTH + 1)) --max-count=1)" >> $GITHUB_ENV
142143 env :
143144 DEPTH : ${{ steps.get-last-commit-with-checks.outputs.commit_depth || github.event.pull_request.commits }}
144145 - name : Set head sha
146+ if : github.event_name == 'pull_request'
145147 run : echo "HEAD_SHA=$(git rev-list $GITHUB_SHA --skip=1 --max-count=1)" >> $GITHUB_ENV
146148 - name : Get changes
147149 id : get-changes
You can’t perform that action at this time.
0 commit comments