diff options
Diffstat (limited to 'testing/web-platform/tests/.github/workflows/regen_certs.yml')
-rw-r--r-- | testing/web-platform/tests/.github/workflows/regen_certs.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/web-platform/tests/.github/workflows/regen_certs.yml b/testing/web-platform/tests/.github/workflows/regen_certs.yml new file mode 100644 index 0000000000..d3e1240e79 --- /dev/null +++ b/testing/web-platform/tests/.github/workflows/regen_certs.yml @@ -0,0 +1,37 @@ +name: certificates +on: + # Our certificates are good for ~1 year, but we regenerate them every + # month to be sure. Also support manually triggering the workflow. + schedule: + - cron: 0 0 12 * * + workflow_dispatch: +jobs: + update: + runs-on: ubuntu-20.04 + steps: + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Checkout + uses: actions/checkout@v4 + - 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@v5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + author: wpt-pr-bot <wpt-pr-bot@users.noreply.github.com> + commit-message: Automated regeneration of WPT certificates + title: Regenerate WPT certificates + body: | + This automated pull request renews the core WPT certificates. + + See the [workflow](https://github.com/web-platform-tests/wpt/blob/master/.github/workflows/regen_certs.yml) for how this pull request was created. + branch: actions/regen-certs |