Skip to content

Commit 753db07

Browse files
authored
Merge branch 'main' into genome-viz-display
2 parents 315b63d + e6174ee commit 753db07

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/update-catalog.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Update brc data catalog
2+
3+
on:
4+
schedule:
5+
# At 10:00 on Sunday
6+
- cron: "0 10 * * 0"
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
update-catalog:
13+
if: github.repository == 'galaxyproject/brc-analytics'
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.12"
22+
architecture: "x64"
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
- name: Install python dependencies
26+
run: pip install -r ./catalog/build/py/requirements.txt
27+
- name: Install npm dependencies
28+
run: npm ci
29+
- name: Run catalog script
30+
run: npm run build-files-from-ncbi
31+
- name: Get current date
32+
id: date
33+
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
34+
- name: Create Pull Request
35+
uses: peter-evans/create-pull-request@v7
36+
with:
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+
title: "chore: update data catalog ${{ steps.date.outputs.date }}"
39+
commit-message: "chore: update data catalog ${{ steps.date.outputs.date }}"

0 commit comments

Comments
 (0)