Skip to content

Commit 449119d

Browse files
committed
ci: Add commit step
1 parent 09a8ce8 commit 449119d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/containers_config.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Container Configs
22

33
on:
4-
# FIXME Remove these and only run on release or PRs to main
4+
# FIXME Remove these and only run on release or PRs to main or TEMPLATE updates
55
push:
66
branches: [main,dev]
77
pull_request:
@@ -36,4 +36,15 @@ jobs:
3636
profile="wave,${{ matrix.container_type }}"
3737
fi
3838
nextflow inspect . -profile $profile -format config > conf/containers/containers_${{ matrix.container_type }}_${{ matrix.architecture }}.config
39+
- name: Commit & push changes
40+
id: commit-and-push
41+
if: steps.pre-commit.outcome == 'failure'
42+
run: |
43+
git config user.email "[email protected]"
44+
git config user.name "nf-core-bot"
45+
git config push.default upstream
46+
git add .
47+
git status
48+
git commit -m "[automated] Update container configs"
49+
git push
3950

0 commit comments

Comments
 (0)