-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (43 loc) · 1.65 KB
/
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
42
43
44
45
46
47
48
49
50
name: Update repository
on:
schedule:
- cron: '51 6 * * *'
workflow_dispatch:
jobs:
update-repo:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '^3.9'
- name: Configure git environment
run: |
git config --global user.email "[email protected]"
git config --global user.name "DANDI Bot"
- name: Check out repository
uses: actions/checkout@v4
- name: Get dandisets-linkml-status-tools submodule content
run: git submodule update --init --recursive --remote
- name: Commit of the update of submodule if there is a change
run: |
if git diff --quiet -- "./tools"; then
echo "There is no change in the dandisets-linkml-status-tools submodule."
else
git add ./tools
git commit -m "Update dandisets-linkml-status-tools submodule"
git push
echo "The dandisets-linkml-status-tools submodule has been updated."
fi
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install datalad
python -m pip install con-duct
python -m pip install ./tools
# Update this repo with the latest validation reports
- name: datalad run dandisets-linkml-status with con-duct
run: |
datalad run -m "Get latest validation reports with a summary" duct dandisets-linkml-status --include-unpublished --dandi-instance dandi -l INFO
git push
echo "The repository has been updated with the latest validation reports."