.github/workflows/update-benchmarks.yml #722
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |