Skip to content

.github/workflows/update-benchmarks.yml #571

.github/workflows/update-benchmarks.yml

.github/workflows/update-benchmarks.yml #571

# Run daily
on:
schedule:
- cron: '0 0 * * *'
push: # For testing
branches:
- main
jobs:
update_benchmarks:
runs-on: ubuntu-latest
name: Update Benchmarks
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update Benchmarks
run: |
sudo apt install python3 python3-pip
sudo pip3 install -r requirements.txt
python3 update.py
- name: Configure git
run: |
git config --local user.name "Automated Update"
git config --local user.email "[email protected]"
- name: Commit changes to main
run: |
git add benchmarks
git add stigs.json
git commit -m "Update Benchmarks" || true
- name: Push changes to main
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main