Skip to content

Commit d0e64bc

Browse files
chore: add autobump actions (#394)
1 parent ee49828 commit d0e64bc

2 files changed

Lines changed: 70 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# run every week
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 0'
5+
workflow_dispatch:
6+
7+
# cancel any in-progress runs if a new commit is pushed
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
9+
concurrency:
10+
group: 'autobump'
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
17+
jobs:
18+
autobump:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v5
22+
23+
- name: Update conda envs and also create pinnings
24+
uses: snakemake/snakedeploy-github-action@v1
25+
with:
26+
subcommand: update-conda-envs
27+
args: workflow/envs/*.yaml --pin-envs
28+
29+
- name: Create Pull Request
30+
uses: peter-evans/create-pull-request@v7
31+
with:
32+
branch: perf/autobump
33+
title: "perf: autobump conda envs"
34+
token: ${secrets.AUTOBUMP_PAT}
35+
commit-message: "perf: autobump conda envs"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# run every week
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 0'
5+
workflow_dispatch:
6+
7+
# cancel any in-progress runs if a new commit is pushed
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
9+
concurrency:
10+
group: 'autobump'
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
17+
jobs:
18+
autobump:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v5
22+
23+
- name: Update wrappers and meta-wrappers
24+
uses: snakemake/snakedeploy-github-action@v1
25+
with:
26+
subcommand: update-snakemake-wrappers
27+
args: workflow/Snakefile workflow/rules/*.smk
28+
29+
- name: Create Pull Request
30+
uses: peter-evans/create-pull-request@v7
31+
with:
32+
branch: perf/autobump
33+
title: "perf: autobump snakemake wrappers"
34+
token: ${secrets.AUTOBUMP_PAT}
35+
commit-message: "perf: autobump snakemake wrappers"

0 commit comments

Comments
 (0)