Skip to content

Update GitHub Actions workflow to get best runs #2

Update GitHub Actions workflow to get best runs

Update GitHub Actions workflow to get best runs #2

Workflow file for this run

name: get-best-runs
on:
push:
branches:
- git-workflow
jobs:
get-best-runs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mlflow python-git
- name: Run script
run: python3 utils/best_results.py
- name: Commit results if it changed
run: |
# if the results changed then commit the changes
if [[ $(git status --porcelain) ]]; then
git config --global user.email "md.rahman.ce@gmail.com"
git config --global user.name "Md Mijanur Rahman"
git commit -am "Update results" || exit 0
git push
fi