-
Notifications
You must be signed in to change notification settings - Fork 186
36 lines (30 loc) · 1.08 KB
/
autobump.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
name: autobump
on:
workflow_dispatch:
schedule:
- cron: "50 0 * * 5"
concurrency:
group: '${{ github.workflow }}'
cancel-in-progress: true
jobs:
autobump:
strategy:
fail-fast: false
max-parallel: 1
matrix:
prefix: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.SNAKEDEPLOY_BOT_APP_ID }}
private_key: ${{ secrets.SNAKEDEPLOY_BOT_PRIVATE_KEY }}
- name: Update conda envs
uses: snakemake/snakedeploy-github-action@v1
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
with:
subcommand: update-conda-envs
args: "*/${{ matrix.prefix }}*/environment.yaml */${{ matrix.prefix }}*/*/environment.yaml --create-prs --warn-on-error --entity-regex '(?P<entity>.+)/environment.yaml' --pr-add-label --pin-envs"