mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #861] [CLOSED] Implement support for pre-/post-actions #1652
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#1652
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/861
Author: @ZauberNerd
Created: 11/2/2021
Status: ❌ Closed
Base:
master← Head:pre-post📝 Commits (4)
4aa604atest: add testdata for pre/post actionsabcc154test: temporarily load remote action from xing/act...@pre-posted756d0feat: implement pre and post actions7b95298test: add integration tests for pre/post actions📊 Changes
17 files changed (+486 additions, -57 deletions)
View changed files
📝
pkg/model/action.go(+13 -7)📝
pkg/runner/run_context.go(+55 -19)📝
pkg/runner/runner_test.go(+107 -0)📝
pkg/runner/step_context.go(+204 -31)➕
pkg/runner/testdata/actions/pre-post-if/action.yml(+18 -0)➕
pkg/runner/testdata/actions/pre-post-if/main.js(+1 -0)➕
pkg/runner/testdata/actions/pre-post-if/post.js(+5 -0)➕
pkg/runner/testdata/actions/pre-post-if/pre.js(+5 -0)➕
pkg/runner/testdata/actions/pre-post/action.yml(+16 -0)➕
pkg/runner/testdata/actions/pre-post/main.js(+1 -0)➕
pkg/runner/testdata/actions/pre-post/post.js(+5 -0)➕
pkg/runner/testdata/actions/pre-post/pre.js(+5 -0)➕
pkg/runner/testdata/local-action-with-post-step/push.yml(+13 -0)➕
pkg/runner/testdata/remote-action-with-main-skipped/push.yml(+9 -0)➕
pkg/runner/testdata/remote-action-with-post-step-failing/push.yml(+10 -0)➕
pkg/runner/testdata/remote-action-with-pre-and-post-step/push.yml(+9 -0)➕
pkg/runner/testdata/remote-action-with-pre-step-failing/push.yml(+10 -0)📄 Description
This PR needs https://github.com/nektos/act/pull/898 and https://github.com/nektos/act/pull/901 to be merged first.
Implemented here are:
pre,pre-iffor remote JavaScript actionspost,post-iffor local and remote JavaScript actions🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.