Bug 1705666 [wpt PR 28538] - [GitHub Actions] consistently use ubuntu-20.04 and checkout v2, a=testonly

Automatic update from web-platform-tests
[GitHub Actions] consistently use ubuntu-20.04 and checkout v2 (#28538)

The default fetch-depth has changed, and the epochs workflow needs the
history for `./wpt rev-list` to work.
--

wpt-commits: 280d5059bbeff7177215e0990d7cfb3ef8e14ec7
wpt-pr: 28538
This commit is contained in:
Philip Jägenstedt 2021-04-24 09:14:38 +00:00 committed by moz-wptsync-bot
parent f4936f81fe
commit a3301dfb95
2 changed files with 6 additions and 4 deletions

View File

@ -6,10 +6,12 @@ on:
- cron: 10 */3 * * *
jobs:
update:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run epochs_update.sh
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'

View File

@ -8,14 +8,14 @@ on:
- 'tools/**'
jobs:
build-and-tag:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 50
- name: Install dependencies