Skip to content

Commit

Permalink
Update/fix for the actions status badges
Browse files Browse the repository at this point in the history
* Via `usethis::use_github_actions_badge("ci-cd.yml")`, updated in usethis 2.1.6 (see https://usethis.r-lib.org/news/index.html#usethis-216) to use the same approach and URLs GitHub itself would in 'Create status badge'.
* The existing badge seems broken for `CI-CD`, which is shown as failing, signalling that old URL is not correct.
  • Loading branch information
riccardoporreca committed Jan 24, 2024
1 parent 598900a commit 8918447
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-cd-renv.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help

# Name of the workflow => usethis::use_github_actions_badge("CI-CD-renv")
# Name of the workflow
name: CI-CD-renv
# Create status badge with usethis::use_github_actions_badge("ci-cd-renv.yml")

on:
# Triggered on push and pull request events
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help

# Name of the workflow => usethis::use_github_actions_badge("CI-CD")
# Name of the workflow
name: CI-CD
# Create status badge with usethis::use_github_actions_badge("ci-cd.yml")

on:
# Triggered on push and pull request events
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# ShinyCICD

<!-- badges: start -->
[![CI-CD](https://github.com/miraisolutions/ShinyCICD/workflows/CI-CD/badge.svg)](https://github.com/miraisolutions/ShinyCICD/actions/workflows/ci-cd.yml)
[![CI-CD-renv](https://github.com/miraisolutions/ShinyCICD/workflows/CI-CD-renv/badge.svg)](https://github.com/miraisolutions/ShinyCICD/actions/workflows/ci-cd-renv.yml)
[![ci-cd](https://github.com/miraisolutions/ShinyCICD/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/miraisolutions/ShinyCICD/actions/workflows/ci-cd.yml)
[![ci-cd-renv](https://github.com/miraisolutions/ShinyCICD/actions/workflows/ci-cd-renv.yml/badge.svg)](https://github.com/miraisolutions/ShinyCICD/actions/workflows/ci-cd-renv.yml)
<!-- badges: end -->

The goal of ShinyCICD is to provide an example of a packaged Shiny app,
Expand Down

0 comments on commit 8918447

Please sign in to comment.