File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments