From 517b410be65372b65da6ad7d56d670f1965600cf Mon Sep 17 00:00:00 2001 From: Jacob Tomlinson Date: Fri, 6 Dec 2019 14:49:57 +0000 Subject: [PATCH] Add checks for new Dask versions on Conda Forge --- .github/workflows/watch-conda-forge.yml | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/watch-conda-forge.yml diff --git a/.github/workflows/watch-conda-forge.yml b/.github/workflows/watch-conda-forge.yml new file mode 100644 index 0000000..217ddfc --- /dev/null +++ b/.github/workflows/watch-conda-forge.yml @@ -0,0 +1,38 @@ +name: Check for new versions of Dask on Conda Forge + +on: + schedule: + - cron: "0 * * * *" + +jobs: + check-version: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Get latest Dask version + id: latest_version + uses: jacobtomlinson/gha-anaconda-package-version@0.1.0 + with: + org: 'conda-forge' + package: 'dask' + - name: Find and Replace + uses: jacobtomlinson/gha-find-replace@0.1.1 + with: + include: "(base\/|notebook\/)" + find: "dask==[0-9\.]+" + replace: "${{ steps.latest_tag.outputs.version }}" + - name: Create Pull Request + uses: peter-evans/create-pull-request@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: 'Update Dask version to ${{ steps.latest_tag.outputs.version }}' + title: 'Update Dask version to ${{ steps.latest_tag.outputs.version }}' + reviewers: 'jacobtomlinson' + branch: 'upgrade-dask-version' + branch-suffix: 'none' + body: | + A new Dask version has been detected. + + Updated `Dockerfile`s to use `${{ steps.latest_tag.outputs.version }}`.