Skip to content

Check for new versions of Dask on Conda Forge #44473

Check for new versions of Dask on Conda Forge

Check for new versions of Dask on Conda Forge #44473

name: Check for new versions of Dask on Conda Forge
on:
workflow_dispatch:
schedule:
- cron: "0 * * * *"
jobs:
check-version:
runs-on: ubuntu-latest
if: github.repository == 'dask/dask-docker'
steps:
- uses: actions/checkout@v2
- name: Get current Dask version
id: current_version
uses: the-coding-turtle/ga-yaml-parser@v0.1.2
with:
file: .github/workflows/build.yml
- name: Get latest Dask version
id: latest_version
uses: jacobtomlinson/gha-anaconda-package-version@0.1.4
with:
org: "conda-forge"
package: "dask"
- name: Find and Replace Release
uses: jacobtomlinson/gha-find-replace@2.0.0
with:
find: ${{ steps.current_version.outputs.jobs_docker_env_release }}
replace: ${{ steps.latest_version.outputs.version }}
regex: false
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.DASK_BOT_TOKEN }}
commit-message: "Update Dask version to ${{ steps.latest_version.outputs.version }}"
title: "Update Dask version to ${{ steps.latest_version.outputs.version }}"
reviewers: "jacobtomlinson"
labels: "automerge"
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: "upgrade-dask-version"
body: |
A new Dask version has been detected.
Updated `Dockerfile`s to use `${{ steps.latest_version.outputs.version }}`.