-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (41 loc) · 1.36 KB
/
flybase-db-update.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
name: Update FlyBase database metadata
on:
workflow_dispatch:
inputs:
FB_EMAIL:
description: "The FlyBase email to place in the database metadata file."
required: true
default: "[email protected]"
FB_RELEASE:
description: "FlyBase release number (e.g. FB2022_04)"
required: true
DMEL_RELEASE:
description: "Dmel annotation release number (e.g. 6.47)"
required: true
jobs:
update-flybase:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'poetry'
- run: poetry install
- name: Update FlyBase metadata file
run: |
rm ./conf/flybase/databases.json && \
make conf/flybase/databases.json
env:
FB_EMAIL: ${{ inputs.FB_EMAIL }}
FB_RELEASE: ${{ inputs.FB_RELEASE }}
DMEL_RELEASE: ${{ inputs.DMEL_RELEASE }}
- name: Create PR for DB metadata update
uses: peter-evans/create-pull-request@v4
with:
title: Update FlyBase DB metadata for ${{ inputs.FB_RELEASE }}
body: Auto-generated PR for FlyBase DB metadata updates.
add-paths: conf/flybase/databases.json
branch: flybase-db-update