Skip to content

Update

Update #137

Workflow file for this run

name: Update
on:
schedule:
- cron: "0 6 * * *" # Daily at 6AM UTC
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Install ripgrep
run: |
curl -L0 https://github.com/BurntSushi/ripgrep/releases/download/14.1.0/ripgrep_14.1.0-1_amd64.deb --output ripgrep_14.1.0-1_amd64.deb
sudo dpkg -i ripgrep_14.1.0-1_amd64.deb
rg -V
rg --pcre2-version
- name: Checkout main branch
uses: actions/checkout@v3
- name: Checkout gh-pages branch
uses: actions/checkout@v3
with:
ref: gh-pages
path: gh-pages
- name: Checkout mozilla/gecko-dev
uses: actions/checkout@v3
with:
repository: mozilla/gecko-dev
path: gecko-dev
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: pip
- run: pip install -r requirements.txt
- name: Generate new data
run: >
python src/recomp-metrics/aggregate.py
--mc ./gecko-dev --git --gh-pages-data gh-pages/data
-m RC --use-current-revision
- name: Update gh-pages branch
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "$(git -C ../gecko-dev show -s --format=%cs)"
git push
working-directory: ./gh-pages