Skip to content

Commit

Permalink
Add rhub email validation to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pdil committed Mar 17, 2024
1 parent 9db339f commit 473b939
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-checklist.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
release_checklist <- function(version) {
release_checklist <- function(email, token, version) {
# Platform checks
devtools::check_rhub(interactive = FALSE)
rhub::validate_email(email, token)
devtools::check_rhub(email = email, interactive = FALSE)

devtools::check_win_devel()

# Reverse dependency checks
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ jobs:
- name: Run release checks
env:
EMAIL: ${{ secrets.RHUB_EMAIL }}
TOKEN: ${{ secrets.RHUB_TOKEN }}
VERSION: ${{ inputs.version }}
run: |
source(".github/workflows/release-checklist.R")
release_checklist(Sys.getenv("VERSION"))
release_checklist(
Sys.getenv("EMAIL"),
Sys.getenv("TOKEN"),
Sys.getenv("VERSION")
)
shell: Rscript {0}

- name: Update NEWS.md version
Expand Down

0 comments on commit 473b939

Please sign in to comment.