Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/retarget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Retest base branch change

on:
pull_request:
# Keep the same skipped check on a normal code update and a text edit.
types: [opened, reopened, synchronize, edited]

jobs:
retest:
if: github.event.changes.base.ref.from
permissions:
contents: read
statuses: write
uses: ./.github/workflows/test.yml
secrets:
GDRIVE_USER_CREDENTIALS_DATA: ${{ secrets.GDRIVE_USER_CREDENTIALS_DATA }}
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ on:
branches:
- main
pull_request:
types: [opened, reopened, synchronize, edited]
workflow_dispatch:
workflow_call:
secrets:
GDRIVE_USER_CREDENTIALS_DATA:
required: false

name: Tests

Expand All @@ -15,7 +18,6 @@ jobs:
pending:
if: >-
github.event_name == 'pull_request' && github.base_ref == 'main' &&
(github.event.action != 'edited' || github.event.changes.base.ref.from) &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]' &&
github.actor != 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/')
Expand All @@ -30,7 +32,6 @@ jobs:
test:
name: test (${{ matrix.os }}, ${{ matrix.pyv }})
runs-on: ${{ matrix.os }}
if: github.event.action != 'edited' || github.event.changes.base.ref.from
outputs:
live: ${{ steps.live.outcome }}

Expand Down
Loading