mirror of
https://github.com/nektos/act.git
synced 2026-04-26 17:35:49 +03:00
[PR #887] [MERGED] Add more steps context support #1666
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#1666
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/887
Author: @victorpopkov
Created: 11/17/2021
Status: ✅ Merged
Merged: 11/27/2021
Merged by: @mergify[bot]
Base:
master← Head:feature/steps-context📝 Commits (3)
2bbe4d1feat: add more steps context support2db732afeat: add conclusion and outcome steps context tests753afdcMerge branch 'master' into feature/steps-context📊 Changes
8 files changed (+107 additions, -15 deletions)
View changed files
📝
pkg/runner/expression.go(+11 -1)📝
pkg/runner/expression_test.go(+12 -3)📝
pkg/runner/run_context.go(+46 -8)📝
pkg/runner/run_context_test.go(+6 -1)📝
pkg/runner/runner_test.go(+2 -0)📝
pkg/runner/step_context.go(+2 -2)➕
pkg/runner/testdata/steps-context/conclusion/push.yml(+14 -0)➕
pkg/runner/testdata/steps-context/outcome/push.yml(+14 -0)📄 Description
Add more steps context support to match GitHub:
https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context
Should reference https://github.com/nektos/act/issues/465 and https://github.com/nektos/act/pull/557.
Changes
Add step outcome
steps.<step id>.outcomestring is the result of a completed step beforecontinue-on-error.Remove step success in favour of conclusion
steps.<step id>.conclusionstring is the result of a completed step aftercontinue-on-erroris applied, which currently matches the originalstepResult.Successvalue. So, respectively, all checks have been replaced:Success == true→Conclusion == stepStatusSuccessSuccess == false→Conclusion == stepStatusFailureTested on
All
runnerpackage tests have passed. The following workflow has been used to check the behaviour as well:Output (before)
Output (after)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.