Skip to content

Commit 548b297

Browse files
committed
ci: keep-state check
Signed-off-by: CrazyMax <[email protected]>
1 parent 36590ad commit 548b297

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,3 +603,44 @@ jobs:
603603
exit 1
604604
fi
605605
shell: bash
606+
607+
keep-state:
608+
runs-on: ubuntu-latest
609+
steps:
610+
-
611+
name: Checkout
612+
uses: actions/checkout@v4
613+
-
614+
name: Set up Docker Buildx
615+
uses: ./
616+
with:
617+
name: foo
618+
keep-state: true
619+
-
620+
name: Set up Docker Buildx
621+
uses: ./
622+
with:
623+
name: foo
624+
625+
keep-state-error:
626+
runs-on: ubuntu-latest
627+
steps:
628+
-
629+
name: Checkout
630+
uses: actions/checkout@v4
631+
-
632+
name: Set up Docker Buildx
633+
id: buildx
634+
continue-on-error: true
635+
uses: ./
636+
with:
637+
driver: docker
638+
keep-state: true
639+
-
640+
name: Check
641+
run: |
642+
echo "${{ toJson(steps.buildx) }}"
643+
if [ "${{ steps.buildx.outcome }}" != "failure" ] || [ "${{ steps.buildx.conclusion }}" != "success" ]; then
644+
echo "::error::Should have failed"
645+
exit 1
646+
fi

0 commit comments

Comments
 (0)