Merge pull request #429 from crazy-max/fix-keep-state
Some checks failed
ci / k3s (v0.10.5) (push) Waiting to run
ci / k3s (v0.11.0) (push) Waiting to run
ci / cache-binary (false) (push) Waiting to run
ci / cache-binary (true) (push) Waiting to run
ci / keep-state (push) Waiting to run
ci / main (cloud:latest) (push) Failing after 35s
ci / main () (push) Failing after 2m50s
ci / platforms (push) Waiting to run
ci / docker-context (push) Waiting to run
ci / cleanup (false) (push) Waiting to run
ci / cleanup (true) (push) Waiting to run
ci / keep-state-error (push) Waiting to run
ci / main (cloud:v0.11.2-desktop.2) (push) Failing after 6m33s
ci / main (lab:latest) (push) Successful in 30s
ci / main (latest) (push) Successful in 1m24s
ci / main (v0.4.1) (push) Successful in 29s
ci / multi (push) Successful in 2m0s
ci / error (push) Failing after 6m32s
ci / install (push) Successful in 1m56s
ci / use (false) (push) Successful in 19s
ci / use (true) (push) Successful in 1m17s
ci / docker-driver (push) Failing after 35s
ci / config-inline (push) Failing after 36s
ci / debug (push) Failing after 13m45s
ci / driver (image=moby/buildkit:latest) (push) Failing after 1m34s
ci / driver (image=moby/buildkit:master network=host ) (push) Failing after 1m34s
ci / endpoint (push) Failing after 39s
ci / config (push) Failing after 36s
ci / with-qemu (, all) (push) Failing after 37s
ci / with-qemu (, arm64,riscv64,arm) (push) Failing after 36s
ci / with-qemu (v0.9.1, arm64,riscv64,arm) (push) Successful in 11m55s
ci / with-qemu (v0.9.1, all) (push) Failing after 35s
ci / build-ref (cb185f095fd3d9444e0aa605d3789e9e05f2a1e7) (push) Failing after 4m38s
ci / build-ref (master) (push) Failing after 4m39s
ci / build-ref (refs/pull/731/head) (push) Failing after 4m50s
ci / build-ref (refs/tags/v0.5.1) (push) Failing after 4m43s
ci / standalone-install-error (push) Successful in 1m17s
ci / standalone-cmd (push) Failing after 3m17s
ci / standalone-action (push) Failing after 2m2s
ci / append (push) Successful in 1m38s
test / test (push) Failing after 1m48s
validate / prepare (push) Successful in 10s
validate / validate (push) Failing after 36s
ci / windows-error (push) Waiting to run

fix keep-state not being respected
This commit is contained in:
CrazyMax 2025-06-18 10:37:30 +02:00 committed by GitHub
commit e468171a9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View File

@ -621,6 +621,7 @@ jobs:
uses: ./ uses: ./
with: with:
name: foo name: foo
keep-state: true
keep-state-error: keep-state-error:
runs-on: ubuntu-latest runs-on: ubuntu-latest

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ export const certsDir = process.env['STATE_certsDir'] || '';
export const tmpDockerContext = process.env['STATE_tmpDockerContext'] || ''; export const tmpDockerContext = process.env['STATE_tmpDockerContext'] || '';
export const cleanup = /true/i.test(process.env['STATE_cleanup'] || ''); export const cleanup = /true/i.test(process.env['STATE_cleanup'] || '');
export const buildxIsDefaultBuilder = /true/i.test(process.env['STATE_buildxIsDefaultBuilder'] || ''); export const buildxIsDefaultBuilder = /true/i.test(process.env['STATE_buildxIsDefaultBuilder'] || '');
export const keepState = !!process.env['STATE_keepState']; export const keepState = /true/i.test(process.env['STATE_keepState'] || '');
export function setDebug(debug: string) { export function setDebug(debug: string) {
core.saveState('isDebug', debug); core.saveState('isDebug', debug);
@ -47,6 +47,6 @@ export function setBuildxIsDefaultBuilder(buildxIsDefaultBuilder: boolean) {
core.saveState('buildxIsDefaultBuilder', buildxIsDefaultBuilder); core.saveState('buildxIsDefaultBuilder', buildxIsDefaultBuilder);
} }
export function setKeepState(retain: boolean) { export function setKeepState(keepState: boolean) {
core.saveState('keepState', retain); core.saveState('keepState', keepState);
} }