summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/.github/workflows/interfaces.yml
blob: 04636e0bb3d5f923321f7979b829c01785465017 (plain)
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
name: interfaces
on:
  # Trigger at every UTC noon, or manually.
  schedule:
    - cron: 0 12 * * *
  workflow_dispatch:
jobs:
  update:
    runs-on: ubuntu-20.04
    steps:
    - name: Checkout
      uses: actions/checkout@v4
    - name: Run interfaces_update.sh
      run: ./tools/ci/interfaces_update.sh
    - name: 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>
        # env.webref_idl_version is set by interfaces_update.sh
        title: "Sync interfaces/ with @webref/idl ${{ env.webref_idl_version }}"
        commit-message: "Sync interfaces/ with @webref/idl ${{ env.webref_idl_version }}"
        body: |
          This automated pull request updates interfaces/*.idl from [@webref/idl ${{ env.webref_idl_version }}](https://www.npmjs.com/package/@webref/idl/v/${{ env.webref_idl_version }}).

          Before merging, please check that any tests that depend on the updated IDL files still work. In particular, check for **gray boxes as the wpt.fyi check status**, which usually means that some tests have regressed.

          If additional changes are needed, please manually create another PR based on this one.

          See the [workflow](https://github.com/web-platform-tests/wpt/blob/master/.github/workflows/interfaces.yml) for how this pull request was created, and the [README](https://github.com/web-platform-tests/wpt/blob/master/interfaces/README.md) for how the IDL files in this directory are used.
        branch: actions/update-idl