Skip to content

Commit 026d0c2

Browse files
committed
Replace revdepcheck with newer recheck workflow
1 parent d275c53 commit 026d0c2

File tree

3 files changed

+11
-23
lines changed

3 files changed

+11
-23
lines changed

.github/workflow-resources/release-checklist.R

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflow-resources/release-pr-body.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
### 📝 Pre-release checklist
44
- [ ] Review automated changes
5-
- [ ] Review rhub and win_devel checks (see maintainer email for results)
6-
- [ ] Review reverse dependency checks
5+
- [ ] Review reverse dependency checks (see `release` workflow artifacts)
76
- [ ] Review check and test results
87
- [ ] Verify `DESCRIPTION` and `NEWS.md` are accurate
98
- [ ] Update `cran-comments.md` if necessary
@@ -15,10 +14,13 @@
1514
### 📝 Post-release checklist
1615
- [ ] `git tag v{{ .version }}`
1716
- [ ] `git push --tags`
18-
- [ ] Update `DESCRIPTION` and `NEWS.md` versions to `{{ .version }}.9000`
17+
- [ ] Update `DESCRIPTION` versions to `{{ .version }}.9000`
18+
- [ ] Add `[unreleased]` title at top of `NEWS.md`
1919
- [ ] Add release date of latest version to `NEWS.md`
2020
- Example `Released Monday, February 31, 2020.`
2121
- [ ] Commit changes with message `Prepare for next release`
22-
- [ ] Run `usethis::use_github_release()` from this branch
2322

2423
✅ Merge this pull request when all post-release tasks are complete.
24+
25+
### 📝 Post-merge Steps
26+
- Create [release](https://github.com/pdil/usmapdata/releases) linked to `v{{ .version }}` tag with release notes from `NEWS.md`.

.github/workflows/release.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
type: string
1212
# When calling this workflow from another repo, ensure the following files are
1313
# located in the local .github/workflow-resources directory:
14-
# • release-checklist.R
1514
# • release-pr-body.md
1615
# • release-version-check.sh
1716
workflow_call:
@@ -22,6 +21,9 @@ on:
2221
type: string
2322

2423
jobs:
24+
revdep-check:
25+
uses: r-devel/recheck/.github/workflows/recheck.yml@v1
26+
2527
release:
2628
runs-on: ubuntu-latest
2729

@@ -43,20 +45,12 @@ jobs:
4345
extra-packages: |
4446
any::devtools
4547
any::rhub
46-
github::r-lib/revdepcheck
4748
48-
- name: Run release checks
49+
- name: Update DESCRIPTION version
4950
env:
50-
EMAIL: ${{ secrets.RHUB_EMAIL }}
51-
TOKEN: ${{ secrets.RHUB_TOKEN }}
5251
VERSION: ${{ inputs.version }}
5352
run: |
54-
source(".github/workflow-resources/release-checklist.R")
55-
release_checklist(
56-
Sys.getenv("EMAIL"),
57-
Sys.getenv("TOKEN"),
58-
Sys.getenv("VERSION")
59-
)
53+
desc::desc_set_version(Sys.getenv("VERSION"))
6054
shell: Rscript {0}
6155

6256
- name: Update NEWS.md version

0 commit comments

Comments
 (0)