File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
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 }}"
You can’t perform that action at this time.
0 commit comments