From c4a5df0711af92fde3419bf6b8b929c88c791a93 Mon Sep 17 00:00:00 2001 From: Dmitry Shemetov Date: Fri, 8 Mar 2024 17:43:32 -0800 Subject: [PATCH] ci: fix pkgdown refs --- .github/workflows/pkgdown.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index ca4ee94c8..886055ae7 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -51,9 +51,9 @@ jobs: # https://github.com/r-lib/pkgdown/issues/2257 run: | target_ref <- "${{ github.event_name == 'pull_request' && github.base_ref || github.ref }}" - override <- if (target_ref == "main") { + override <- if (target_ref == "main" || target_ref == "refs/heads/main") { list(development = list(mode = "release", version_label = "light")) - } else if (target_ref == "dev") { + } else if (target_ref == "dev" || target_ref == "refs/heads/dev") { list(development = list(mode = "devel", version_label = "success")) } else { stop("Unexpected target_ref: ", target_ref)