forked from bellard/quickjs
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 926 Bytes
/
update-262.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
name: Update Test262
on:
push:
branches:
- master
- wpedantic-compat
jobs:
update-test262:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Clone test262 repo
run: git clone https://github.com/tc39/test262.git test262
- name: Run make test2-update
run: make test2-update
- name: Check for changes in test262_errors.txt
if: ${{ github.ref }} == 'refs/heads/wpedantic-compat'
run: |
git diff --quiet
- name: Commit any changes in test262_errors.txt
if: ${{ github.ref }} == 'refs/heads/master'
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git diff --quiet || (git add test262_errors.txt && git commit -m "Updated test262_errors.txt")
git push