-
Notifications
You must be signed in to change notification settings - Fork 192
46 lines (37 loc) · 1.33 KB
/
update_components_template.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
41
42
43
44
45
46
name: Update Modules Template
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update_modules:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: "3.x"
- name: Install nf-core
run: pip install nf-core
- name: Update modules
run: nf-core modules update --all --no-preview
working-directory: nf_core/pipeline-template
- name: Update subworkflows
run: nf-core subworkflows update --all --no-preview
working-directory: nf_core/pipeline-template
# Commit the changes
- name: Commit changes
run: |
git config user.email "core@nf-co.re"
git config user.name "nf-core-bot"
git add .
git status
git commit -m "[automated] Fix code linting"
# Open a new PR to dev with the changes
- name: Create PR
run: |
git checkout -b update-modules
git push origin update-modules
gh pr create --title "Update modules in template" --body "This PR updates the modules in the pipeline template" --base dev --head update-modules