-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (42 loc) · 1.4 KB
/
results.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This needs to stay in sync with the update_gh_pages.yml workflow in
# results-analysis, since both repos check out results-analysis and run the same
# code. This setup is to avoid having a secret access token to allow a workflow
# in one repo to push to the other repo.
name: results
on:
# Trigger every hour, or manually.
schedule:
- cron: '15 * * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-22.04
steps:
- name: Checkout results-analysis
uses: actions/checkout@v3
with:
repository: web-platform-tests/results-analysis
ref: main
fetch-depth: 1
path: results-analysis
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: libssl-dev libkrb5-dev
version: 1.0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: results-analysis/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: results-analysis
- name: Update
run: node git-write.js --max-time=3000 --max-age-days=90
working-directory: results-analysis
- name: Push new runs
run: |
git remote set-url --push origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git push origin --tags
working-directory: results-analysis/results-analysis-cache.git