-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (40 loc) · 1.21 KB
/
template-updater.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
47
name: Updating templates
on:
schedule:
- cron: '0 13 * * 1'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r scripts/requirements.txt
- name: Run template
run: python scripts/template_updater.py
- name: Show differences
run: 'git diff --stat'
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update ENA templates
title: 'Automatic update ENA templates'
body: |
This PR is automatically generated based on changes in the ena_upload/templates/ENA_template_samples_ERC0000XX.xml files.
Please verify if these changes are valid.
labels: |
automatic PR
reviewers: bedroesb
branch: checklist_update
base: main
- name: Check output
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"