forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.29 KB
/
regen_certs.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
name: Regenerate WPT certificates
on:
schedule:
# Our certificates are good for ~1 year, but we regenerate them every
# month to be sure.
- cron: '0 0 12 * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Regenerate certs
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
run: |
python wpt make-hosts-file | sudo tee -a /etc/hosts
python wpt regen-certs --force
- name: Commit and create pull request
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
uses: peter-evans/create-pull-request@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Automated regeneration of WPT certificates
title: Regenerate WPT certificates
body: |
This automated pull request renews the core WPT certificates.
Pull request auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: actions/regen-certs