diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml deleted file mode 100644 index 11165ca..0000000 --- a/.github/workflows/links.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -name: Check URLs 🌐 - -on: - pull_request: - types: - - opened - - synchronize - - reopened - - ready_for_review - branches: - - main - push: - branches: - - main - workflow_call: - -concurrency: - group: links-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -jobs: - links: - name: ${{ vars.CI_IMAGE }} - runs-on: ubuntu-latest - - steps: - - name: Checkout project ⬇️ - uses: actions/checkout@v4 - - - name: Check URLs 🌐 - uses: lycheeverse/lychee-action@v1 - with: - fail: true - args: >- - --verbose - --no-progress - --exclude "https://github.com.*.tar.gz" - **/*.md - **/*.Rmd - **/*.html - **/*.yml - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pkgdown.yml b/.github/workflows/pkgdown.yml index 6e8b2f2..8379de9 100644 --- a/.github/workflows/pkgdown.yml +++ b/.github/workflows/pkgdown.yml @@ -37,7 +37,13 @@ jobs: run: pkgdown::build_site() shell: Rscript {0} + - name: Check URLs 🌐 + run: | + lychee . --format markdown --verbose --no-progress >> $GITHUB_STEP_SUMMARY + shell: bash + - name: Checkout gh-pages branch ⬇️ + if: github.ref_name == 'main' uses: actions/checkout@v4 with: path: gh-pages diff --git a/.github/workflows/shared_ci.yml b/.github/workflows/shared_ci.yml index c1396b1..da38851 100644 --- a/.github/workflows/shared_ci.yml +++ b/.github/workflows/shared_ci.yml @@ -27,10 +27,6 @@ jobs: name: Pkgdown 📖 uses: boehringer-ingelheim/dv.templates/.github/workflows/pkgdown.yml@main - links: - name: Check URLs 🌐 - uses: boehringer-ingelheim/dv.templates/.github/workflows/links.yml@main - styler: name: Styler 🌐 uses: boehringer-ingelheim/dv.templates/.github/workflows/styler.yml@main \ No newline at end of file diff --git a/README.md b/README.md index 78b2362..8dd5ead 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ -# dv.templates +# dv.templates [![Build status](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/check.yml/badge.svg)](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/check.yml?query=workflow) [![Build status](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/gitleaks.yml/badge.svg)](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/gitleaks.yml?query=workflow) [![Build status](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/lintr.yml/badge.svg)](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/lintr.yml?query=workflow) [![Build status](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/pkgdown.yml/badge.svg)](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/pkgdown.yml?query=workflow) [![Build status](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/roxygen.yml/badge.svg)](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/roxygen.yml?query=workflow) -[![Build status](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/links.yml/badge.svg)](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/links.yml?query=workflow) [![Build status](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/styler.yml/badge.svg)](https://github.com/boehringer-ingelheim/dv.templates/actions/workflows/styler.yml?query=workflow) An R package template with built-in GitHub Actions-based CI/CD workflows. diff --git a/inst/repo-logo.svg b/man/figures/repo-logo.svg similarity index 100% rename from inst/repo-logo.svg rename to man/figures/repo-logo.svg diff --git a/workflows.md b/workflows.md index 0a6a2aa..e74009e 100644 --- a/workflows.md +++ b/workflows.md @@ -21,10 +21,6 @@ Generates a [`pkgdown`](https://pkgdown.r-lib.org/) website and uploads it to Gi Uses [`roxygen`](https://roxygen2.r-lib.org/) to generate `.Rd` files in the `man/` directory. It also checks if manuals are up-to-date with roxygen comments in the code. -### [`links.yml`](https://github.com/boehringer-ingelheim/dv.templates/blob/main/.github/workflows/links.yml) - -Checks for broken links inside the repository. - ### [`shared_ci.yml`](https://github.com/boehringer-ingelheim/dv.templates/blob/main/.github/workflows/shared_ci.yml) Builds a reusable workflow to be called from other repositories. @@ -72,7 +68,4 @@ jobs: name: Pkgdown 📖 uses: boehringer-ingelheim/dv.templates/.github/workflows/pkgdown.yml@main - links: - name: Check URLs 🌐 - uses: boehringer-ingelheim/dv.templates/.github/workflows/links.yml@main ```