6666
6767 - name : Get commit ID from Triton's spirv-llvm-translator.conf
6868 if : ${{ env.TARGET_PRID == null }}
69- run : echo "CID_CURRENT=$(cat . /lib/Target/SPIRV/spirv-llvm-translator.conf)" >> $GITHUB_ENV
69+ run : echo "CID_CURRENT=$(<third_party/intel /lib/Target/SPIRV/spirv-llvm-translator.conf)" >> $GITHUB_ENV
7070
7171 - name : Checkout SPIRV-LLVM-Translator
7272 if : ${{ env.TARGET_PRID == null }}
@@ -82,12 +82,12 @@ jobs:
8282 run : |
8383 echo "CID_LATEST=$(git -C external/SPIRV-LLVM-Translator rev-parse HEAD)" >> $GITHUB_ENV
8484
85- # the latest valid cid has been weitten to spirv-llvm-translator.conf
85+ # the latest valid cid has been written to spirv-llvm-translator.conf
8686 - name : Search the latest valid Translator cid
8787 if : ${{ env.TARGET_PRID == null }}
8888 run : |
8989 ./scripts/check-update-translator-cid.sh $CID_LATEST $CID_CURRENT
90- if git status --porcelain . /lib/Target/SPIRV/spirv-llvm-translator.conf | grep '^ M'; then
90+ if git status --porcelain third_party/intel /lib/Target/SPIRV/spirv-llvm-translator.conf | grep '^ M'; then
9191 echo "MODIFIED=true" >> $GITHUB_ENV
9292 echo "spirv-llvm-translator.conf has been modified"
9393 fi
@@ -112,7 +112,7 @@ jobs:
112112 git checkout -b ${PR_BRANCH}
113113 git branch --show-current # bot/update_translator_cid
114114 git status
115- git add . /lib/Target/SPIRV/spirv-llvm-translator.conf
115+ git add third_party/intel /lib/Target/SPIRV/spirv-llvm-translator.conf
116116 git commit -m "Update spirv-llvm-translator.conf"
117117 git push origin ${PR_BRANCH}
118- pr_url=$( gh pr create --title "[github-bot] Update spirv-llvm-translator.conf" --body "Automated PR to update translator commit id." --reviewer whitneywhtsang --head ${PR_BRANCH} --base main)
118+ gh pr create --title "[github-bot] Update spirv-llvm-translator.conf" --body "Automated PR to update translator commit id." --reviewer whitneywhtsang --head ${PR_BRANCH} --base main
0 commit comments