Skip to content

Commit e3114f5

Browse files
committed
version bump
1 parent 6a6b2e4 commit e3114f5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/R-CMD-check.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@ jobs:
6464
with:
6565
submodules: true
6666

67+
- name: Temporarily bump package version
68+
run: |
69+
old_version=$(grep "Version:" DESCRIPTION | awk '{print $2}')
70+
if [[ $(echo "$old_version" | tr -cd '.' | wc -c) -eq 2 ]]; then
71+
new_version="${old_version}.9999"
72+
if [[ "$RUNNER_OS" == "macOS" ]]; then
73+
sed -i "" "s/Version: .*/Version: ${new_version}/" DESCRIPTION
74+
else
75+
sed -i "s/Version: .*/Version: ${new_version}/" DESCRIPTION
76+
fi
77+
fi
78+
echo "Current package version is now: $(grep "Version:" DESCRIPTION | awk '{print $2}')"
79+
shell: bash
80+
6781
- name: Install system dependencies (Linux)
6882
if: runner.os == 'Linux'
6983
run: |

0 commit comments

Comments
 (0)