Skip to content

Commit 70998ab

Browse files
committed
ci(device): also run when a PR is retargeted
build.yml runs on the edited event; the device workflow now does too, but only when the edit changed the base branch — that's what changes the merge result (routine in a PR stack), while title and body edits would just spend device minutes.
1 parent bcb04f6 commit 70998ab

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/device-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
branches:
1010
- main
1111
pull_request:
12-
types: [opened, synchronize, reopened]
12+
types: [opened, synchronize, reopened, edited]
1313
workflow_dispatch:
1414
inputs:
1515
device_filter:
@@ -28,6 +28,10 @@ permissions:
2828

2929
jobs:
3030
device-tests:
31+
# `edited` fires for title/body/base changes alike; only a base retarget
32+
# changes the merge result (routine in a PR stack), so title and body
33+
# edits don't spend device minutes.
34+
if: github.event.action != 'edited' || github.event.changes.base != null
3135
runs-on: ubuntu-latest
3236
timeout-minutes: 45
3337
steps:

0 commit comments

Comments
 (0)