Skip to content

Commit 9abf028

Browse files
committed
Add weekly bump
1 parent 35210c6 commit 9abf028

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Weekly Release Patch Bump
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 * * 1' # 2 AM EST (UTC-4) on Monday mornings
6+
workflow_dispatch:
7+
8+
jobs:
9+
bump-patch:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Find Latest Release Branch
17+
id: find-branch
18+
run: |
19+
latest_version=$(git branch -r | grep 'origin/RELEASE_' | sed 's|origin/||' | grep -oP 'RELEASE_\K\d+_\d+' | sort -Vr | head -n1)
20+
latest_branch="RELEASE_${latest_version//_/.}"
21+
echo "Detected latest release branch: $latest_branch"
22+
echo "branch=$latest_branch" >> $GITHUB_OUTPUT
23+
24+
- name: Run patch bump script and push
25+
run: |
26+
git checkout ${{ steps.find-branch.outputs.branch }}
27+
28+
sed -r -i 's/(^ARG BIOCONDUCTOR_PATCH=)([0-9]+)$/echo "\1$((\2+1))"/ge' Dockerfile
29+
30+
git config user.name github-actions
31+
git config user.email [email protected]
32+
git add Dockerfile
33+
34+
git commit -m "Weekly auto-bump Dockerfile patch version for latest release" || exit 0
35+
git push origin ${{ steps.find-branch.outputs.branch }}

0 commit comments

Comments
 (0)