-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (38 loc) · 991 Bytes
/
update-submod.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
name: Update submodule
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * 1"
push:
branches:
- main
env:
actor: "41898282+github-actions[bot]"
jobs:
update-submod:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure git
run: |
git config --local user.email "${actor}@users.noreply.github.com"
git config --local user.name "$actor"
- name: Update submodule
run: |
git submodule update --remote
- name: Copy submod files
uses: snakemake/[email protected]
with:
directory: .
snakefile: Snakefile
args: "copy_submod_files --forcerun copy_submod_files -c 1"
- name: Commit & Push
run: |
git add _extensions/rackham/
git commit -m "🤖 Update extension from submodule" || echo "No changes to commit"
git push