Skip to content

Commit

Permalink
add dependency between version change and RCMD Check
Browse files Browse the repository at this point in the history
+ rename to "bump..."
  • Loading branch information
Felixmil committed Jul 3, 2024
1 parent 819e7d5 commit 76f46a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: increase-dev-version
name: bump-dev-version

on:
workflow_call:

jobs:
change-version:
bump-dev-version:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -29,7 +29,8 @@ jobs:
}
shell: Rscript {0}

- uses: EndBug/add-and-commit@v9
- name: commit modified DESCRIPTION file
uses: EndBug/add-and-commit@v9
if: ${{ success() }}
with:
message: '🤖 Bump development version.'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/main-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ on:


jobs:
increase-dev-version: # only do that when actually merging in main/develop branch
bump-dev-version: # only do that when actually merging in main/develop branch
if: github.event_name != 'pull_request'
uses: ./.github/workflows/increase-dev-version.yaml
uses: ./.github/workflows/bump-dev-version.yaml
R-CMD-Check:
if: ${{ always() }}
needs: [bump-dev-version]
uses: Open-Systems-Pharmacology/Workflows/.github/workflows/R-CMD-check-build.yml@main
with:
install-pksim: true
Expand Down

0 comments on commit 76f46a0

Please sign in to comment.