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
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
statuses: write
actions: read
pull-requests: read
uses: chaobrain/ci-runners/.github/workflows/public.yml@v1
uses: chaobrain/ci-runners/.github/workflows/public.yml@v1.22.0
with:
context: ${{ inputs.context }}
plan: ${{ inputs.plan }}
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
# read with the job token: one step (a step costs about 1 s of log upload), before
# anything of the head runs; an older head ends the run here, and no part starts (16.6)
- id: start
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: start
context: ${{ inputs.context }}
Expand All @@ -117,7 +117,7 @@ jobs:
# variables; the read-only token only where the caller asks
- id: command
if: steps.start.outputs.ok == 'true' && inputs.plan != ''
uses: chaobrain/ci-runners/actions/part@v1
uses: chaobrain/ci-runners/actions/part@v1.22.0
env:
CIRUNNERS_PLAN: ${{ inputs.plan }}
CIRUNNERS_EVENT: ${{ github.event_name }}
Expand All @@ -136,7 +136,7 @@ jobs:
upload: 'false'
- id: plan
if: always() && steps.start.outputs.ok == 'true'
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: plan
context: ${{ inputs.context }}
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
permissions:
statuses: write
steps:
- uses: chaobrain/ci-runners/actions/flow@v1
- uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: pending
context: ${{ inputs.context }}
Expand All @@ -200,7 +200,7 @@ jobs:
max-parallel: ${{ fromJSON(needs.plan.outputs.max_parallel) }}
matrix:
part: ${{ fromJSON(needs.plan.outputs.parts) }}
uses: chaobrain/ci-runners/.github/workflows/part.yml@v1
uses: chaobrain/ci-runners/.github/workflows/part.yml@v1.22.0
with:
part: ${{ toJSON(matrix.part) }}
context: ${{ inputs.context }}
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
state: ${{ needs.plan.outputs.state || (needs.plan.outputs.routed == 'true' && steps.verdict.outputs.state) || 'error' }}
steps:
- if: needs.plan.outputs.state != ''
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: status
context: ${{ inputs.context }}
Expand All @@ -237,7 +237,7 @@ jobs:
description: ${{ needs.plan.outputs.description }}
# a plan job that ended without its end or a plan (its runner lost, a step failed)
- if: needs.plan.outputs.state == '' && needs.plan.outputs.routed != 'true'
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: status
context: ${{ inputs.context }}
Expand All @@ -248,7 +248,7 @@ jobs:
- if: >-
needs.plan.outputs.state == '' && needs.plan.outputs.routed == 'true' &&
needs.plan.outputs.files != 'none' && needs.plan.outputs.files != 'success'
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: status
context: ${{ inputs.context }}
Expand All @@ -259,7 +259,7 @@ jobs:
if: >-
needs.plan.outputs.state == '' && needs.plan.outputs.routed == 'true' &&
(needs.plan.outputs.files == 'none' || needs.plan.outputs.files == 'success')
uses: chaobrain/ci-runners/actions/verdict@v1
uses: chaobrain/ci-runners/actions/verdict@v1.22.0
with:
context: ${{ inputs.context }}
sha: ${{ needs.plan.outputs.sha || inputs.sha || github.event.pull_request.head.sha || github.sha }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/part.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
# (the action's default input), never the command's; download-artifact only where the
# API refuses (no actions: read)
- id: files
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: fetch
workspace: ${{ github.workspace }}
Expand All @@ -75,7 +75,7 @@ jobs:
name: ci-plan-files
path: ${{ runner.temp }}/ci-runners-files
- id: part
uses: chaobrain/ci-runners/actions/part@v1
uses: chaobrain/ci-runners/actions/part@v1.22.0
env:
CIRUNNERS_FILES: ${{ fromJSON(inputs.part).files && format('{0}/ci-runners-files', runner.temp) || '' }}
with:
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
# none (pass, red) has no retry whatever the rows say, so no step decides it (#239)
- id: retry
if: always() && steps.part.outputs.outcome != '' && steps.part.outputs.next != 'none'
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: retry
token: '' # no token: only the files' step holds one (#245)
Expand Down Expand Up @@ -157,14 +157,14 @@ jobs:
retry: ${{ steps.retry.outputs.retry }}
steps:
- id: locate
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: locate
part-id: ${{ fromJSON(inputs.part).id }}
# no host known: no record to read, the first attempt counts as lost
- id: retry
if: always() && steps.locate.outputs.labels == ''
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: retry
part: ${{ inputs.part }}
Expand All @@ -184,13 +184,13 @@ jobs:
retry: ${{ steps.retry.outputs.retry }}
steps:
- id: salvage
uses: chaobrain/ci-runners/actions/salvage@v1
uses: chaobrain/ci-runners/actions/salvage@v1.22.0
with:
parts: ${{ fromJSON(inputs.part).id }}
wait-seconds: ${{ fromJSON(inputs.part).salvage_wait }}
- id: retry
if: always()
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: retry
part: ${{ inputs.part }}
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:
# (the action's default input), never the command's; download-artifact only where the
# API refuses (no actions: read)
- id: files
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: fetch
workspace: ${{ github.workspace }}
Expand All @@ -245,7 +245,7 @@ jobs:
name: ci-plan-files
path: ${{ runner.temp }}/ci-runners-files
- id: part
uses: chaobrain/ci-runners/actions/part@v1
uses: chaobrain/ci-runners/actions/part@v1.22.0
env:
CIRUNNERS_FILES: ${{ fromJSON(inputs.part).files && format('{0}/ci-runners-files', runner.temp) || '' }}
with:
Expand Down Expand Up @@ -312,7 +312,7 @@ jobs:
permissions:
statuses: write
steps:
- uses: chaobrain/ci-runners/actions/flow@v1
- uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: status
context: ${{ inputs.context }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/public-part.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
path: ${{ runner.temp }}/ci-runners-files
- id: hosted
if: fromJSON(inputs.part).gpus == 0
uses: chaobrain/ci-runners/actions/hosted@v1
uses: chaobrain/ci-runners/actions/hosted@v1.22.0
env:
CIRUNNERS_FILES: ${{ fromJSON(inputs.part).files && format('{0}/ci-runners-files', runner.temp) || '' }}
with:
Expand All @@ -62,7 +62,7 @@ jobs:
results: ${{ fromJSON(inputs.part).results }}
- id: part
if: fromJSON(inputs.part).gpus > 0
uses: chaobrain/ci-runners/actions/part@v1
uses: chaobrain/ci-runners/actions/part@v1.22.0
env:
CIRUNNERS_FILES: ${{ fromJSON(inputs.part).files && format('{0}/ci-runners-files', runner.temp) || '' }}
with:
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
if-no-files-found: warn
- id: retry
if: always() && (steps.hosted.outputs.outcome || steps.part.outputs.outcome) != ''
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
env:
CIRUNNERS_PUBLIC: 'true'
with:
Expand All @@ -126,7 +126,7 @@ jobs:
retry: ${{ steps.retry.outputs.retry }}
steps:
- id: retry
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
env:
CIRUNNERS_PUBLIC: 'true'
with:
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
path: ${{ runner.temp }}/ci-runners-files
- id: hosted
if: fromJSON(inputs.part).gpus == 0
uses: chaobrain/ci-runners/actions/hosted@v1
uses: chaobrain/ci-runners/actions/hosted@v1.22.0
env:
CIRUNNERS_FILES: ${{ fromJSON(inputs.part).files && format('{0}/ci-runners-files', runner.temp) || '' }}
with:
Expand All @@ -174,7 +174,7 @@ jobs:
attempt-of: ${{ fromJSON(env.RETRY).attempt_of }}
- id: part
if: fromJSON(inputs.part).gpus > 0
uses: chaobrain/ci-runners/actions/part@v1
uses: chaobrain/ci-runners/actions/part@v1.22.0
env:
CIRUNNERS_FILES: ${{ fromJSON(inputs.part).files && format('{0}/ci-runners-files', runner.temp) || '' }}
with:
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
permissions:
statuses: write
steps:
- uses: chaobrain/ci-runners/actions/flow@v1
- uses: chaobrain/ci-runners/actions/flow@v1.22.0
env:
CIRUNNERS_PUBLIC: 'true'
with:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
permissions:
contents: read
steps:
- uses: chaobrain/ci-runners/actions/flow@v1
- uses: chaobrain/ci-runners/actions/flow@v1.22.0
env:
CIRUNNERS_PUBLIC: 'true'
with:
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
# read with the job token: one step (a step costs about 1 s of log upload), before
# anything of the head runs; an older head ends the run here, and no part starts (16.6)
- id: start
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: start
context: ${{ inputs.context }}
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
run: mkdir -p "$RUNNER_TEMP/ci-runners-plan" && eval "$CIRUNNERS_PLAN" > "$RUNNER_TEMP/ci-runners-plan/plan.json"
- id: plan
if: always() && steps.start.outputs.ok == 'true'
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: plan
context: ${{ inputs.context }}
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
permissions:
statuses: write
steps:
- uses: chaobrain/ci-runners/actions/flow@v1
- uses: chaobrain/ci-runners/actions/flow@v1.22.0
env:
CIRUNNERS_PUBLIC: 'true'
with:
Expand All @@ -177,7 +177,7 @@ jobs:
max-parallel: ${{ fromJSON(needs.plan.outputs.max_parallel) }}
matrix:
part: ${{ fromJSON(needs.plan.outputs.parts) }}
uses: chaobrain/ci-runners/.github/workflows/public-part.yml@v1
uses: chaobrain/ci-runners/.github/workflows/public-part.yml@v1.22.0
with:
part: ${{ toJSON(matrix.part) }}
context: ${{ inputs.context }}
Expand All @@ -201,15 +201,15 @@ jobs:
CIRUNNERS_PUBLIC: 'true'
steps:
- if: needs.plan.outputs.state != ''
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: status
context: ${{ inputs.context }}
sha: ${{ needs.plan.outputs.sha }}
state: ${{ needs.plan.outputs.state }}
description: ${{ needs.plan.outputs.description }}
- if: needs.plan.outputs.state == '' && needs.plan.outputs.routed != 'true'
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: status
context: ${{ inputs.context }}
Expand All @@ -220,7 +220,7 @@ jobs:
# record on any host to salvage (18.7)
- id: verdict
if: needs.plan.outputs.state == '' && needs.plan.outputs.routed == 'true'
uses: chaobrain/ci-runners/actions/flow@v1
uses: chaobrain/ci-runners/actions/flow@v1.22.0
with:
command: verdict
context: ${{ inputs.context }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sweep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
actions: write
statuses: write
steps:
- uses: chaobrain/ci-runners/actions/sweep@v1
- uses: chaobrain/ci-runners/actions/sweep@v1.22.0
with:
workflow: ${{ inputs.workflow }}
context: ${{ inputs.context }}
Expand Down
2 changes: 1 addition & 1 deletion actions/RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hook
v1.22.0
Loading