diff --git a/.github/workflows/pprcode_biolib_runs_daily.yml b/.github/workflows/pprcode_biolib_runs_daily.yml index 24c945d..ff82366 100644 --- a/.github/workflows/pprcode_biolib_runs_daily.yml +++ b/.github/workflows/pprcode_biolib_runs_daily.yml @@ -13,7 +13,9 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + ref: badge - name: Set up Python uses: actions/setup-python@v4 @@ -22,7 +24,7 @@ jobs: - name: Install dependencies run: | - pip3 install pybiolib==1.1.1423 + pip3 install pybiolib - name: Fetch BioLib Runs count run: | @@ -47,6 +49,6 @@ jobs: git config --global user.email "actions@github.com" git add image/badges/BioLib_Runs_badge.svg git commit -m "Update BioLib run number to ${{ env.BIOLIB_RUNS }}" - git push + git push origin badge fi diff --git a/README.md b/README.md index b9b092f..d4c88ba 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ _Cover Image is presented with [**MolecularNodes Project**](https://github.com/B ---- [![PPRCODE Workflow](https://github.com/YaoYinYing/PPRCODE_Guideline/actions/workflows/pprcode-guideline.yml/badge.svg)](https://github.com/YaoYinYing/PPRCODE_Guideline/actions/workflows/pprcode-guideline.yml) [![Docker Image Pulls](https://img.shields.io/docker/pulls/yaoyinying/pprcode)](https://hub.docker.com/r/yaoyinying/pprcode) -[![BioLib program Runs](image/badges/BioLib_Runs_badge.svg)](https://biolib.com/YaoYinYing/pprcode/) +[![BioLib program Runs](https://raw.githubusercontent.com/YaoYinYing/PPRCODE_Guideline/badge/image/badges/BioLib_Runs_badge.svg)](https://biolib.com/YaoYinYing/pprcode/) ---- # PPRCODE diff --git a/scripts/biolib_runcount.py b/scripts/biolib_runcount.py index 6f8fc73..7e3f434 100644 --- a/scripts/biolib_runcount.py +++ b/scripts/biolib_runcount.py @@ -5,5 +5,5 @@ biolib.sign_in() p=biolib.api.client -pp=p.get(url='/apps/',params={'account_handle':'YaoYinYing','app_name':'pprcode'}) +pp=p.get(path='/apps/',params={'account_handle':'YaoYinYing','app_name':'pprcode'}) print(pp.json()['results'][0]['job_count']) \ No newline at end of file