Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujiem committed Sep 16, 2023
1 parent 374038f commit 4d0045a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/crawl_downloads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: crawl-zenodo-downloads

on:
push:
schedule:
- cron: '0 12 * * *'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: zenodo
- name: Run
run: |
pip3 install -r requirements.txt --quiet
curl https://zenodo.org/record/8196385 > zenodo_page.txt
python3 crawl.py
git config --local user.name "${GITHUB_ACTOR}"
git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com"
export remote_repo="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git add *.json
git commit -m "Update downloads" --amend --reset-author
git push -f "${remote_repo}" zenodo
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ Loghub maintains a collection of system logs, which are freely accessible for AI
### Datasets download
We host only a small sample (2k lines) of each log dataset on Github. If you are interested in these raw datasets, please download them [via Zenodo](https://doi.org/10.5281/zenodo.1144100).

:bell: We proudly announce that the loghub datasets have attained [**90000+ total downloads**](https://doi.org/10.5281/zenodo.1144100) by more than [**450 organizations**](https://github.com/logpai/loghub/wiki/Loghub-download-list) from both industry and academia.

:bell: We proudly announce that the loghub datasets have attained total <a href="https://doi.org/10.5281/zenodo.1144100"><img src="https://img.shields.io/endpoint?&url=https://cdn.jsdelivr.net/gh/logpai/loghub@zenodo/downloads.json&labelColor=e0e0e0&color=9cf&style=flat&label=Downloads"></a> by more than [**450 organizations**](https://github.com/logpai/loghub/wiki/Loghub-download-list) from both industry and academia.

### Citation
Please cite the following paper if you use the loghub datasets for research.
Expand Down

0 comments on commit 4d0045a

Please sign in to comment.