forked from dask/dask-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.39 KB
/
watch-conda-forge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Check for new versions of Dask on Conda Forge
on:
schedule:
- cron: "0 * * * *"
jobs:
check-version:
runs-on: ubuntu-latest
if: github.repository == 'dddlab/dask-docker'
steps:
- uses: actions/checkout@v2
- name: Get latest Dask version
id: latest_version
uses: jacobtomlinson/[email protected]
with:
org: "conda-forge"
package: "dask"
- name: Find and Replace Release
uses: jacobtomlinson/[email protected]
with:
include: 'README\.md|\.github\/workflows\/build\.yml|build\/docker-compose\.yml'
find: "release: .*"
replace: 'release: "${{ steps.latest_version.outputs.version }}"'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_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 }}`.