about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYoung-Flash <dongyang@apache.org>2024-02-19 18:09:33 +0800
committerYoung-Flash <dongyang@apache.org>2024-02-19 18:09:33 +0800
commitaf174b9428fd4a80971b7bfc213f108facf62740 (patch)
tree04315d66d419e10d49346145370c3979e8171078
parent68c506fd6299c60c96a6202ca08f9d868a0838a3 (diff)
downloadrust-af174b9428fd4a80971b7bfc213f108facf62740.tar.gz
rust-af174b9428fd4a80971b7bfc213f108facf62740.zip
internal: checkout repo before run typos
-rw-r--r--.github/workflows/ci.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 62fbd57abc1..5a8b18e3fe1 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -226,6 +226,11 @@ jobs:
       - name: download typos
         run: curl -LsSf https://github.com/crate-ci/typos/releases/download/$TYPOS_VERSION/typos-$TYPOS_VERSION-x86_64-unknown-linux-musl.tar.gz | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
 
+      - name: Checkout repository
+        uses: actions/checkout@v4
+        with:
+          ref: ${{ github.event.pull_request.head.sha }}
+
       - name: check for typos
         run: typos