From 6b9ef537edacb2f497fc244d51919c4a87901914 Mon Sep 17 00:00:00 2001 From: Nytelife26 Date: Mon, 24 May 2021 02:21:20 +0100 Subject: [PATCH] ci(danger): use pr head instead of main --- .github/workflows/ci-danger.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci-danger.yml b/.github/workflows/ci-danger.yml index e2a1e68f3..43f15f66a 100644 --- a/.github/workflows/ci-danger.yml +++ b/.github/workflows/ci-danger.yml @@ -14,6 +14,9 @@ jobs: steps: - name: "[INIT] Checkout repository" uses: actions/checkout@v2 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: "[INIT] Install Ruby ${{ matrix.ruby }}" uses: ruby/setup-ruby@v1.71.0 with: