File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : update-rapids
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ schedule :
6
+ - cron : " 0 20 * * 1" # Run once weekly
7
+
8
+ permissions :
9
+ pull-requests : write
10
+ contents : write
11
+
12
+ defaults :
13
+ run :
14
+ shell : bash -l {0}
15
+
16
+ concurrency :
17
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18
+ cancel-in-progress : true
19
+
20
+ env :
21
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # To use GitHub CLI
22
+
23
+ jobs :
24
+ update-rapids :
25
+ name : Check latest RAPIDS
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - uses : actions/checkout@v4
29
+ with :
30
+ submodules : ' true'
31
+ - name : Check latest RAPIDS and update conftest.sh
32
+ run : |
33
+ bash containers/update_rapids.sh
34
+ - name : Create Pull Request
35
+ uses : peter-evans/create-pull-request@v7
36
+ if : github.ref == 'refs/heads/master'
37
+ with :
38
+ add-paths : |
39
+ ops/docker
40
+ branch : create-pull-request/update-rapids
41
+ base : master
42
+ title : " [CI] Update RAPIDS to latest stable"
43
+ commit-message : " [CI] Update RAPIDS to latest stable"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -euo pipefail
4
+
5
+ LATEST_RAPIDS_VERSION=$( gh api repos/rapidsai/cuml/releases/latest --jq ' .name' | sed -e ' s/^v\([[:digit:]]\+\.[[:digit:]]\+\).*/\1/' )
6
+ echo " LATEST_RAPIDS_VERSION = $LATEST_RAPIDS_VERSION "
7
+ DEV_RAPIDS_VERSION=$( date +%Y-%m-%d -d " 20${LATEST_RAPIDS_VERSION// ./ -} -01 + 2 month" | cut -c3-7 | tr - .)
8
+ echo " DEV_RAPIDS_VERSION = $DEV_RAPIDS_VERSION "
9
+
10
+ DIR_PATH=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " ; pwd -P )
11
+ CONTAINER_YAML=" $DIR_PATH /ci_container.yml"
12
+
13
+ sed -i " s/\&rapids_version \" [[:digit:]]\+\.[[:digit:]]\+\" /\&rapids_version \" ${LATEST_RAPIDS_VERSION} \" /" \
14
+ " $CONTAINER_YAML "
15
+ sed -i " s/\&dev_rapids_version \" [[:digit:]]\+\.[[:digit:]]\+\" /\&dev_rapids_version \" ${DEV_RAPIDS_VERSION} \" /" \
16
+ " $CONTAINER_YAML "
You can’t perform that action at this time.
0 commit comments