diff --git a/.github/workflows/github-actions.yaml b/.github/workflows/github-actions.yaml index 73fdf03d..13fee02d 100644 --- a/.github/workflows/github-actions.yaml +++ b/.github/workflows/github-actions.yaml @@ -14,6 +14,9 @@ jobs: - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref || github.ref }} + fetch-depth: 0 - uses: actions/setup-java@v3 with: distribution: temurin