Skip to content

Commit

Permalink
tools: add WPT updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Mert Can Altin committed Aug 20, 2024
1 parent ef4bdbf commit 2436787
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/update-wpt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Update WPT

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

Check failure on line 6 in .github/workflows/update-wpt.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

6:13 [quoted-strings] string value is redundantly quoted with single quotes

permissions:
contents: write
pull-requests: write

jobs:
update-wpt:
name: Update WPT
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

Check warning on line 18 in .github/workflows/update-wpt.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

18:73 [comments] too few spaces before comment
- name: Update WPT
run: |
rm -rf test/fixtures/wpt && mkdir test/fixtures/wpt &&
git clone https://github.com/web-platform-tests/wpt.git --depth=1 test/fixtures/tmp-wpt &&
mv test/fixtures/tmp-wpt/LICENSE.md test/fixtures/wpt/LICENSE.md &&
mv test/fixtures/tmp-wpt/common test/fixtures/wpt/common &&
mv test/fixtures/tmp-wpt/eventsource test/fixtures/wpt/eventsource &&
mv test/fixtures/tmp-wpt/fetch test/fixtures/wpt/fetch &&
mv test/fixtures/tmp-wpt/interfaces test/fixtures/wpt/interfaces &&
mv test/fixtures/tmp-wpt/mimesniff test/fixtures/wpt/mimesniff &&
mv test/fixtures/tmp-wpt/resources test/fixtures/wpt/resources &&
mv test/fixtures/tmp-wpt/service-workers test/fixtures/wpt/service-workers &&
mv test/fixtures/tmp-wpt/storage test/fixtures/wpt/storage &&
mv test/fixtures/tmp-wpt/websockets test/fixtures/wpt/websockets &&
mv test/fixtures/tmp-wpt/xhr test/fixtures/wpt/xhr &&
rm -rf test/fixtures/tmp-wpt
- name: Create Pull Request
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0

Check warning on line 40 in .github/workflows/update-wpt.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

40:88 [comments] too few spaces before comment
with:
base: main
branch: wpt-update
title: Update WPT
body: Automated update of the WPT
commit-message: "chore: update WPT"

Check failure on line 46 in .github/workflows/update-wpt.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

46:27 [quoted-strings] string value is not quoted with single quotes

Check failure on line 46 in .github/workflows/update-wpt.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

46:46 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit 2436787

Please sign in to comment.