Skip to content

Commit

Permalink
Update bump_version_dev.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
DanChaltiel authored Jul 10, 2024
1 parent 769ca36 commit 09de1cb
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/bump_version_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,28 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Check out repository
uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v2
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
install-r: false

- name: Install packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::desc
- name: Update version
id: vars
run: |
install.packages("desc")
desc::desc_bump_version("dev")
new_version = desc::desc_get_version()
cat(sprintf("PKG_NEW_VERSION=%s\n", new_version),
file = Sys.getenv("GITHUB_ENV"), append = TRUE)
message("Setting PKG_NEW_VERSION to ", new_version)
shell: Rscript {0}

- name: Commit the version change
Expand Down

0 comments on commit 09de1cb

Please sign in to comment.