mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #1466] [MERGED] refactor: fix savestate in pre steps #1960
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1960
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/1466
Author: @ChristopherHX
Created: 11/26/2022
Status: ✅ Merged
Merged: 12/15/2022
Merged by: @mergify[bot]
Base:
master← Head:fix-savestate-pre-steps📝 Commits (9)
1405fc4refactor: fix savestate in pre steps92882d0fix pre steps collision688125cfix tests7e1f66dremovebae10f1Merge branch 'master' of https://github.com/nektos/act into fix-pre-steps-v2442f071enable tests476818cUpdate pkg/runner/action.go1009f48Rename InterActionState to IntraActionState6d651f0Merge branch 'master' into fix-savestate-pre-steps📊 Changes
10 files changed (+90 additions, -102 deletions)
View changed files
📝
pkg/model/step_result.go(+0 -1)📝
pkg/runner/action.go(+3 -3)📝
pkg/runner/action_test.go(+4 -3)📝
pkg/runner/command.go(+10 -7)📝
pkg/runner/command_test.go(+2 -6)📝
pkg/runner/run_context.go(+1 -0)📝
pkg/runner/step.go(+16 -25)📝
pkg/runner/step_action_local_test.go(+7 -24)📝
pkg/runner/step_action_remote_test.go(+17 -29)📝
pkg/runner/testdata/GITHUB_STATE/push.yml(+30 -4)📄 Description
This now refactores the stepresult code
This uncovers a design problem:you can create steps with an id prefixed with pre-Reduced the change to only fix a problem, tests in https://github.com/nektos/act/pull/1457 needs to be changed to enable checking this bugFixes: #1459
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.