|
| 1 | +name: Check for gpuCI updates |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: "0 0 * * *" # Daily “At 00:00” UTC |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +jobs: |
| 9 | + update-gpuci: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + if: github.repository == 'dask/distributed' |
| 12 | + |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v2 |
| 15 | + |
| 16 | + - name: Get latest cuDF nightly version |
| 17 | + id: latest_version |
| 18 | + uses: jacobtomlinson/[email protected] |
| 19 | + with: |
| 20 | + org: "rapidsai-nightly" |
| 21 | + package: "cudf" |
| 22 | + version_system: "CalVer" |
| 23 | + |
| 24 | + - name: Strip git tags from versions |
| 25 | + env: |
| 26 | + FULL_RAPIDS_VER: ${{ steps.latest_version.outputs.version }} |
| 27 | + run: echo "RAPIDS_VER=${FULL_RAPIDS_VER::-10}" >> $GITHUB_ENV |
| 28 | + |
| 29 | + - name: Find and Replace Release |
| 30 | + uses: jacobtomlinson/[email protected] |
| 31 | + with: |
| 32 | + include: 'continuous_integration\/gpuci\/axis\.yaml' |
| 33 | + find: "RAPIDS_VER:\n- .*" |
| 34 | + replace: |- |
| 35 | + RAPIDS_VER: |
| 36 | + - "${{ env.RAPIDS_VER }}" |
| 37 | +
|
| 38 | + - name: Create Pull Request |
| 39 | + uses: peter-evans/create-pull-request@v3 |
| 40 | + with: |
| 41 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 42 | + draft: true |
| 43 | + commit-message: "Update gpuCI `RAPIDS_VER` to `${{ env.RAPIDS_VER }}`" |
| 44 | + title: "Update gpuCI `RAPIDS_VER` to `${{ env.RAPIDS_VER }}`" |
| 45 | + team-reviewers: "dask/gpu" |
| 46 | + author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
| 47 | + branch: "upgrade-gpuci-rapids" |
| 48 | + body: | |
| 49 | + A new cuDF nightly version has been detected. |
| 50 | +
|
| 51 | + Updated `axis.yaml` to use `${{ env.RAPIDS_VER }}`. |
0 commit comments