File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -135,27 +135,23 @@ jobs:
135
135
GITHUB_TOKEN : ${{ github.token }}
136
136
EXCLUDE_COMMIT : ${{ github.event.after }}
137
137
run : python3 -u ci_changes_per_commit.py
138
- - name : Deepen and convert depth to sha
139
- id : deepen-and-convert-depth-to-sha
138
+ - name : Set base sha
140
139
run : |
141
140
DEEPEN=$((DEPTH - $(git rev-list HEAD --count))) && if((DEEPEN > 0)); then git fetch --no-tags --recurse-submodules=no --deepen=$DEEPEN; fi
142
- echo "commit =$(git rev-list $GITHUB_SHA --skip=$((DEPTH + 1)) --max-count=1)" >> $GITHUB_OUTPUT
141
+ echo "BASE_SHA =$(git rev-list $GITHUB_SHA --skip=$((DEPTH + 1)) --max-count=1)" >> $GITHUB_ENV
143
142
env :
144
143
DEPTH : ${{ steps.get-last-commit-with-checks.outputs.commit_depth || github.event.pull_request.commits }}
144
+ - name : Set head sha
145
+ run : echo "HEAD_SHA=$(git rev-list $GITHUB_SHA --skip=1 --max-count=1)" >> $GITHUB_ENV
145
146
- name : Get changes
146
147
id : get-changes
147
148
if : github.event_name == 'pull_request'
148
149
run : echo $(git diff $BASE_SHA...$HEAD_SHA --name-only) | echo "changed_files=[\"$(sed "s/ /\", \"/g")\"]" >> $GITHUB_OUTPUT
149
- env :
150
- BASE_SHA : ${{ steps.deepen-and-convert-depth-to-sha.outputs.commit }}
151
- HEAD_SHA : ${{ github.event.after }}
152
150
- name : Set matrix
153
151
id : set-matrix
154
152
working-directory : tools
155
153
run : python3 -u ci_set_matrix.py
156
154
env :
157
- BASE_SHA : ${{ steps.deepen-and-convert-depth-to-sha.outputs.commit }}
158
- HEAD_SHA : ${{ github.event.after }}
159
155
CHANGED_FILES : ${{ steps.get-changes.outputs.changed_files }}
160
156
LAST_FAILED_JOBS : ${{ steps.get-last-commit-with-checks.outputs.check_runs }}
161
157
You can’t perform that action at this time.
0 commit comments