File tree 1 file changed +46
-0
lines changed
1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update WPT
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ schedule :
6
+ - cron : ' 0 0 * * *'
7
+
8
+ permissions :
9
+ contents : write
10
+ pull-requests : write
11
+
12
+ jobs :
13
+ update-wpt :
14
+ name : Update WPT
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout Repository
18
+ uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
19
+ - name : Update WPT
20
+ run : |
21
+ rm -rf test/fixtures/wpt && mkdir test/fixtures/wpt &&
22
+
23
+ git clone https://github.com/web-platform-tests/wpt.git --depth=1 test/fixtures/tmp-wpt &&
24
+
25
+ mv test/fixtures/tmp-wpt/LICENSE.md test/fixtures/wpt/LICENSE.md &&
26
+
27
+ mv test/fixtures/tmp-wpt/common test/fixtures/wpt/common &&
28
+ mv test/fixtures/tmp-wpt/eventsource test/fixtures/wpt/eventsource &&
29
+ mv test/fixtures/tmp-wpt/fetch test/fixtures/wpt/fetch &&
30
+ mv test/fixtures/tmp-wpt/interfaces test/fixtures/wpt/interfaces &&
31
+ mv test/fixtures/tmp-wpt/mimesniff test/fixtures/wpt/mimesniff &&
32
+ mv test/fixtures/tmp-wpt/resources test/fixtures/wpt/resources &&
33
+ mv test/fixtures/tmp-wpt/service-workers test/fixtures/wpt/service-workers &&
34
+ mv test/fixtures/tmp-wpt/storage test/fixtures/wpt/storage &&
35
+ mv test/fixtures/tmp-wpt/websockets test/fixtures/wpt/websockets &&
36
+ mv test/fixtures/tmp-wpt/xhr test/fixtures/wpt/xhr &&
37
+
38
+ rm -rf test/fixtures/tmp-wpt
39
+ - name : Create Pull Request
40
+ uses : peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
41
+ with :
42
+ base : main
43
+ branch : wpt-update
44
+ title : Update WPT
45
+ body : Automated update of the WPT
46
+ commit-message : " chore: update WPT"
You can’t perform that action at this time.
0 commit comments