Skip to content

Commit bbfa25a

Browse files
committed
Fix Chrome OS status check
1 parent 43c6905 commit bbfa25a

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

.github/workflows/status.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,29 @@
33
name: Status
44
on:
55
pull_request:
6-
push:
6+
branches:
7+
- master
78
schedule:
8-
- cron: '0 5 * * 3'
9+
- cron: 0 5 * * 3
910
jobs:
1011
tests:
1112
name: Checks
1213
runs-on: ubuntu-latest
1314
env:
1415
PYTHONIOENCODING: utf-8
15-
PYTHONPATH: ${{ github.workspace }}/resources/lib:${{ github.workspace }}/tests
16+
PYTHONPATH: '${{ github.workspace }}/resources/lib:${{ github.workspace }}/tests'
1617
strategy:
1718
fail-fast: false
1819
steps:
19-
- name: Check out ${{ github.sha }} from repository ${{ github.repository }}
20-
uses: actions/checkout@v2
21-
- name: Set up Python
22-
uses: actions/setup-python@v1
23-
- name: Install dependencies
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install -r requirements.txt
27-
- name: Check Chrome OS recovery images availability
28-
run: python -m tests.checkchromeos
29-
if: always()
20+
- name: 'Check out ${{ github.sha }} from repository ${{ github.repository }}'
21+
uses: actions/checkout@v5
22+
- name: Set up Python
23+
uses: actions/setup-python@v6
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
- name: Check Chrome OS recovery images availability
29+
run: python -m tests.checkchromeos
30+
if: always()
31+

tests/checkchromeos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def __init__(self, message):
1616

1717
def get_devices():
1818
"""Get Chrome OS devices as json object"""
19-
url = 'https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices'
19+
url = 'https://www.chromium.org/chromium-os/developer-library/reference/development/developer-information-for-chrome-os-devices/'
2020
response = requests.get(url, timeout=10)
2121
response.raise_for_status()
22-
html = response.text.split('<table>')[3].split('</table>')[0]
22+
html = response.text.split('<table>')[-1].split('</table>')[0]
2323
html = '<table>' + html + '</table>'
2424
html = html.replace('&', '&#38;')
2525
html = html.replace('<white label>', 'white label')

0 commit comments

Comments
 (0)