-
-
Notifications
You must be signed in to change notification settings - Fork 150
49 lines (41 loc) · 1.56 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
43
44
45
46
47
48
49
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/[email protected]
with:
file: .github/workflows/build.yml
- 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:
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 }}`.