From fc6806ce9340f7bbd293140eaa35031a0a220b2a Mon Sep 17 00:00:00 2001 From: Laurent Gatto Date: Tue, 15 Dec 2020 00:13:30 +0100 Subject: [PATCH] detached head (https://github.com/actions/checkout/issues/124) --- .github/workflows/readme.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/readme.yaml b/.github/workflows/readme.yaml index 5199b9f..ec90e38 100644 --- a/.github/workflows/readme.yaml +++ b/.github/workflows/readme.yaml @@ -6,8 +6,17 @@ jobs: runs-on: ubuntu-latest container: bioconductor/bioconductor_docker:devel steps: - - name: Checkout 🛎️ - uses: actions/checkout@v1 + - name: Checkout PR 🛎️ + uses: actions/checkout@v2 + if: github.event_name == 'pull_request' + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.ref }} + - name: Checkout push 🛎️ + uses: actions/checkout@v2 + if: github.event_name == 'push' + with: + fetch-depth: 0 - name: Generate README.md run: | PATH=$PATH:$HOME/bin/ Rscript -e 'knitr::knit("README.Rmd")'