-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (49 loc) · 1.46 KB
/
update-loci.yaml
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
50
51
52
53
54
55
56
57
58
name: Update data
permissions:
contents: write
on:
pull_request:
branches: main
paths:
- "data/**"
- "scripts/**"
- "workflow/**"
- ".github/workflows/**"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
steps:
- name: Debug dump
uses: crazy-max/ghaction-dump-context@v2
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Miniconda environment
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: strchive
environment-file: scripts/environment.yml
python-version: 3.12
auto-activate-base: false
- run: |
conda info
- name: Check loci and update bed files (short)
#if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'}}
run: snakemake --config stages="skip-refs"
- name: Open pull request with updated files
if: ${{ !(github.event_name == 'pull_request') }}
uses: peter-evans/create-pull-request@v7
with:
branch: update-data
title: Update data
- name: Commit updated files to current pull request
if: ${{ github.event_name == 'pull_request' }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update data