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
10 changes: 9 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Reusable: render the mirror's pipeline inside its image and diff it against render.txt.
# With offline: true, the job then runs the mirror's offline verb in the image.
name: check
on:
workflow_call: {}
workflow_call:
inputs:
offline:
description: The job runs task offline in the image after task check
type: boolean
default: false
permissions:
contents: read
jobs:
Expand All @@ -17,3 +23,5 @@ jobs:
- uses: ./.lib/.github/actions/toolbox
with: {op: 'false'} # a dry run needs no secrets
- run: task check
- if: inputs.offline
run: task run -- task offline
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,8 @@ flowchart TB

On every pull request: checkout, lib at the same commit, the toolbox action without
`op`, `task check`. No secret reaches it, so a pull request from a fork runs it safely. A
mirror with more to check (an `offline` verb, a test suite) writes its own `check.yml`
with the toolbox action and its own steps, as github and dropbox do.
mirror with an `offline` verb sets `offline: true`. The job then runs
`task run -- task offline` in the image.

### The toolbox action

Expand Down
Loading