mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #1089] [MERGED] implement pre and post steps #1770
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#1770
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/1089
Author: @KnisterPeter
Created: 3/30/2022
Status: ✅ Merged
Merged: 5/24/2022
Merged by: @mergify[bot]
Base:
master← Head:implement-pre-and-post-steps📝 Commits (10+)
27d0748feat: add post step to actions and add state command309c220feat: collect pre and post steps for composite actions5e10328refactor: move composite action logic into own filec4bb145refactor: restructure composite handling3d9f688feat: run composite post steps during post step lifecycle95e42ccrefactor: remove duplicate log output209730efeat: run all composite post actions in a step4c79e48refactor: remove unused lines of codedf96968refactor: simplify test expression6cce8a9fix: use composite job logger📊 Changes
37 files changed (+1551 additions, -341 deletions)
View changed files
📝
pkg/exprparser/functions_test.go(+8 -8)📝
pkg/exprparser/interpreter.go(+30 -6)📝
pkg/exprparser/interpreter_test.go(+5 -5)📝
pkg/model/action.go(+12 -0)📝
pkg/model/step_result.go(+1 -0)📝
pkg/runner/action.go(+212 -142)➕
pkg/runner/action_composite.go(+195 -0)📝
pkg/runner/action_test.go(+61 -9)📝
pkg/runner/command.go(+15 -0)📝
pkg/runner/command_test.go(+18 -0)📝
pkg/runner/expression.go(+7 -7)📝
pkg/runner/expression_test.go(+3 -2)📝
pkg/runner/job_executor.go(+12 -5)📝
pkg/runner/run_context.go(+2 -1)📝
pkg/runner/run_context_test.go(+2 -1)📝
pkg/runner/runner_test.go(+1 -0)📝
pkg/runner/step.go(+53 -10)📝
pkg/runner/step_action_local.go(+49 -18)📝
pkg/runner/step_action_local_test.go(+237 -5)📝
pkg/runner/step_action_remote.go(+104 -56)...and 17 more files
📄 Description
This is a continuation of https://github.com/nektos/act/pull/1010
This change implements action post step in combination with the save-state command.
It does support the
post-ifcondition.There are a few preparations for action pre steps, but it's not fully implemented in this PR.
Closes #626
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.