Compare commits

..

3 commits

Author SHA1 Message Date
CrazyMax
e468171a9d
Merge pull request #429 from crazy-max/fix-keep-state
Some checks failed
ci / docker-driver (push) Successful in 11s
ci / endpoint (push) Failing after 8s
ci / config (push) Successful in 21s
ci / config-inline (push) Successful in 17s
ci / with-qemu (, all) (push) Successful in 22s
ci / with-qemu (, arm64,riscv64,arm) (push) Successful in 19s
ci / with-qemu (v0.9.1, arm64,riscv64,arm) (push) Successful in 19s
ci / build-ref (cb185f095fd3d9444e0aa605d3789e9e05f2a1e7) (push) Successful in 34s
ci / build-ref (master) (push) Successful in 33s
ci / standalone-cmd (push) Successful in 23s
ci / standalone-action (push) Successful in 18s
ci / standalone-install-error (push) Successful in 29s
ci / append (push) Successful in 19s
ci / platforms (push) Successful in 23s
ci / docker-context (push) Successful in 11s
ci / cleanup (false) (push) Successful in 13s
ci / cleanup (true) (push) Successful in 15s
ci / k3s (v0.10.5) (push) Failing after 18s
ci / k3s (v0.11.0) (push) Failing after 14s
ci / cache-binary (false) (push) Successful in 15s
ci / cache-binary (true) (push) Successful in 13s
ci / keep-state (push) Successful in 14s
ci / with-qemu (v0.9.1, all) (push) Successful in 19s
ci / build-ref (refs/pull/731/head) (push) Successful in 19s
ci / build-ref (refs/tags/v0.5.1) (push) Successful in 35s
ci / keep-state-error (push) Successful in 11s
test / test (push) Failing after 14s
validate / prepare (push) Failing after 12s
validate / validate (push) Has been skipped
ci / windows-error (push) Has been cancelled
fix keep-state not being respected
2025-06-18 10:37:30 +02:00
CrazyMax
a3e7502fd0
chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-06-17 17:34:10 +02:00
CrazyMax
b145473295
fix keep-state not being respected
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-06-17 17:34:10 +02:00
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);
} }