Check for gpuCI updates #3274
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check for gpuCI updates | |
on: | |
schedule: | |
- cron: "0 0 * * *" # Daily “At 00:00” UTC | |
workflow_dispatch: | |
jobs: | |
update-gpuci: | |
runs-on: ubuntu-latest | |
if: github.repository == 'rapidsai/dask-build-environment' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Parse current axis YAML | |
uses: the-coding-turtle/[email protected] | |
with: | |
file: ci/axis/dask.yaml | |
export_to_envs: true | |
return_to_outputs: false | |
- name: Get old RAPIDS / UCX-Py versions | |
run: | | |
echo OLD_RAPIDS_VER=$RAPIDS_VER_0 >> $GITHUB_ENV | |
echo OLD_UCX_PY_VER=$(curl -sL https://version.gpuci.io/rapids/$RAPIDS_VER_0) >> $GITHUB_ENV | |
echo RAPIDS_VER=$RAPIDS_VER_1 >> $GITHUB_ENV | |
echo UCX_PY_VER=$(curl -sL https://version.gpuci.io/rapids/$RAPIDS_VER_1) >> $GITHUB_ENV | |
- name: Get latest cuDF nightly version | |
id: cudf_latest | |
uses: jacobtomlinson/[email protected] | |
with: | |
org: "rapidsai-nightly" | |
package: "cudf" | |
version_system: "CalVer" | |
- name: Get latest UCX-Py nightly version | |
id: ucx_py_latest | |
uses: jacobtomlinson/[email protected] | |
with: | |
org: "rapidsai-nightly" | |
package: "ucx-py" | |
version_system: "CalVer" | |
- name: Strip git tags from versions | |
env: | |
FULL_RAPIDS_VER: ${{ steps.cudf_latest.outputs.version }} | |
FULL_UCX_PY_VER: ${{ steps.ucx_py_latest.outputs.version }} | |
run: | | |
echo "NEW_RAPIDS_VER=$(echo $FULL_RAPIDS_VER | cut -d'.' -f1,2)" >> $GITHUB_ENV | |
echo "NEW_UCX_PY_VER=$(echo $FULL_UCX_PY_VER | cut -d'.' -f1,2)" >> $GITHUB_ENV | |
- name: Update new RAPIDS versions | |
uses: jacobtomlinson/gha-find-replace@v2 | |
with: | |
include: 'ci/**' | |
find: "${{ env.RAPIDS_VER }}" | |
replace: "${{ env.NEW_RAPIDS_VER }}" | |
regex: false | |
- name: Update old RAPIDS versions | |
uses: jacobtomlinson/gha-find-replace@v3 | |
with: | |
include: 'ci/**' | |
find: "${{ env.OLD_RAPIDS_VER }}" | |
replace: "${{ env.RAPIDS_VER }}" | |
regex: false | |
- name: Update new UCX-Py versions | |
uses: jacobtomlinson/gha-find-replace@v3 | |
with: | |
include: 'ci/**' | |
find: "${{ env.UCX_PY_VER }}" | |
replace: "${{ env.NEW_UCX_PY_VER }}" | |
regex: false | |
- name: Update old UCX-Py versions | |
uses: jacobtomlinson/gha-find-replace@v3 | |
with: | |
include: 'ci/**' | |
find: "${{ env.OLD_UCX_PY_VER }}" | |
replace: "${{ env.UCX_PY_VER }}" | |
regex: false | |
- name: Create pull request | |
if: ${{ env.RAPIDS_VER != env.NEW_RAPIDS_VER && env.UCX_PY_VER != env.NEW_UCX_PY_VER }} | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: "Update gpuCI `RAPIDS_VER` to `${{ env.NEW_RAPIDS_VER }}`, `UCX_PY_VER` to `${{ env.NEW_UCX_PY_VER }}`" | |
title: "Update gpuCI `RAPIDS_VER` to `${{ env.NEW_RAPIDS_VER }}`" | |
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
branch: "upgrade-gpuci-rapids" | |
body: | | |
New cuDF and ucx-py nightly versions have been detected. | |
Updated `dask.yaml` and `run.sh` to use `RAPIDS_VER=${{ env.NEW_RAPIDS_VER }}` and `UCX_PY_VER=${{ env.NEW_UCX_PY_VER }}`. |