7373 git gcc g++ make cmake ninja-build curl \
7474 libgl1 libglib2.0-0 libsndfile1
7575
76+ # See: https://github.com/actions/checkout/issues/363#issuecomment-1915075699
77+ - name : Config git
78+ run : |
79+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
80+
7681 - name : Checkout
7782 uses : actions/checkout@v4
7883
99104 curl -fsSL -O https://raw.githubusercontent.com/Ascend/pytorch/refs/heads/master/requirements.txt
100105 pip install -r requirements.txt
101106
107+ # TODO: We must use numpy 1.x
102108 - name : Install benchmark dependencies
103109 run : |
104110 pip install -r benchmark/requirements.txt --constraint ascend_npu/requirements.txt "numpy==1.*"
@@ -130,7 +136,6 @@ jobs:
130136 path : benchmark/ascend_npu_benchmark.json
131137 if-no-files-found : error
132138 retention-days : 1
133- overwrite : true
134139
135140 - name : Write to workflow job summary
136141 run : |
@@ -141,8 +146,15 @@ jobs:
141146 id : update-readme
142147 run : |
143148 python .ci/benchmark.py --update-readme --path benchmark/ascend_npu_benchmark.json
144-
145- # https://github.com/peter-evans/create-pull-request
149+ if git diff --quiet README.md; then
150+ echo "README.md not changed"
151+ echo "changed=false" >> $GITHUB_OUTPUT
152+ else
153+ echo "README.md changed"
154+ echo "changed=true" >> $GITHUB_OUTPUT
155+ fi
156+
157+ # See: https://github.com/peter-evans/create-pull-request
146158 - name : Create a pull request for changes to README.md
147159 if : ${{ steps.update-readme.outputs.changed == 'true' }}
148160 uses : peter-evans/create-pull-request@v7
0 commit comments