[PR #1010] [CLOSED] feat: implement post steps #1724

Closed
opened 2026-03-01 21:52:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/1010
Author: @KnisterPeter
Created: 2/22/2022
Status: Closed

Base: simplify-action-interfacesHead: implement-pre-and-post-steps


📝 Commits (2)

  • b76f492 feat: add post step to actions and add state command
  • 8b85444 feat: collect pre and post steps for composite actions

📊 Changes

16 files changed (+848 additions, -98 deletions)

View changed files

📝 pkg/model/action.go (+12 -0)
📝 pkg/model/step_result.go (+1 -0)
📝 pkg/runner/action.go (+94 -1)
pkg/runner/action_composite.go (+9 -0)
📝 pkg/runner/action_test.go (+52 -8)
📝 pkg/runner/command.go (+15 -0)
📝 pkg/runner/command_test.go (+18 -0)
📝 pkg/runner/run_context.go (+17 -6)
📝 pkg/runner/step.go (+42 -7)
📝 pkg/runner/step_action_local.go (+12 -4)
📝 pkg/runner/step_action_local_test.go (+196 -3)
📝 pkg/runner/step_action_remote.go (+14 -4)
📝 pkg/runner/step_action_remote_test.go (+347 -54)
📝 pkg/runner/step_docker.go (+5 -1)
📝 pkg/runner/step_run.go (+5 -1)
📝 pkg/runner/step_test.go (+9 -9)

📄 Description

This change implements action post step in combination with the save-state command.
It does support the post-if condition.

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.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/1010 **Author:** [@KnisterPeter](https://github.com/KnisterPeter) **Created:** 2/22/2022 **Status:** ❌ Closed **Base:** `simplify-action-interfaces` ← **Head:** `implement-pre-and-post-steps` --- ### 📝 Commits (2) - [`b76f492`](https://github.com/nektos/act/commit/b76f492a8814de522f322d0bcb72771f26860d52) feat: add post step to actions and add state command - [`8b85444`](https://github.com/nektos/act/commit/8b85444f5b709c8d2c6b44f95df8b3e49fde3cae) feat: collect pre and post steps for composite actions ### 📊 Changes **16 files changed** (+848 additions, -98 deletions) <details> <summary>View changed files</summary> 📝 `pkg/model/action.go` (+12 -0) 📝 `pkg/model/step_result.go` (+1 -0) 📝 `pkg/runner/action.go` (+94 -1) ➕ `pkg/runner/action_composite.go` (+9 -0) 📝 `pkg/runner/action_test.go` (+52 -8) 📝 `pkg/runner/command.go` (+15 -0) 📝 `pkg/runner/command_test.go` (+18 -0) 📝 `pkg/runner/run_context.go` (+17 -6) 📝 `pkg/runner/step.go` (+42 -7) 📝 `pkg/runner/step_action_local.go` (+12 -4) 📝 `pkg/runner/step_action_local_test.go` (+196 -3) 📝 `pkg/runner/step_action_remote.go` (+14 -4) 📝 `pkg/runner/step_action_remote_test.go` (+347 -54) 📝 `pkg/runner/step_docker.go` (+5 -1) 📝 `pkg/runner/step_run.go` (+5 -1) 📝 `pkg/runner/step_test.go` (+9 -9) </details> ### 📄 Description This change implements [action post step](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runspost) in combination with the [save-state command](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#sending-values-to-the-pre-and-post-actions). It does support the `post-if` condition. There are a few preparations for action pre steps, but it's not fully implemented in this PR. Closes #626 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:52:24 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1724
No description provided.