mirror of
https://github.com/nektos/act.git
synced 2026-04-26 17:35:49 +03:00
[PR #1345] [MERGED] Fix composite input handling #1892
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#1892
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/1345
Author: @KnisterPeter
Created: 9/14/2022
Status: ✅ Merged
Merged: 10/6/2022
Merged by: @mergify[bot]
Base:
master← Head:fix-input-handling📝 Commits (6)
236fb8ctest: add test case for #1319f7b2a00fix: setup of composite inputs8f774d7test: add simple remote composite action test5ca5cf8refactor: move ActionRef and ActionRepositoryb37ca3crefactor: remove unused properties7c076f9Merge branch 'master' into fix-input-handling📊 Changes
17 files changed (+246 additions, -149 deletions)
View changed files
📝
pkg/model/workflow.go(+27 -2)📝
pkg/runner/action.go(+28 -51)📝
pkg/runner/action_composite.go(+37 -46)📝
pkg/runner/action_test.go(+2 -4)📝
pkg/runner/expression.go(+17 -3)📝
pkg/runner/run_context.go(+17 -23)📝
pkg/runner/step.go(+5 -3)📝
pkg/runner/step_action_local.go(+5 -2)📝
pkg/runner/step_action_remote.go(+18 -12)📝
pkg/runner/step_docker.go(+4 -0)📝
pkg/runner/step_run.go(+4 -0)📝
pkg/runner/step_test.go(+6 -0)➕
pkg/runner/testdata/uses-composite-with-inputs/action/action.yml(+19 -0)➕
pkg/runner/testdata/uses-composite-with-inputs/composite/action.yml(+22 -0)➕
pkg/runner/testdata/uses-composite-with-inputs/push.yml(+30 -0)📝
pkg/runner/testdata/uses-composite/composite_action/action.yml(+2 -1)📝
pkg/runner/testdata/uses-nested-composite/composite_action2/action.yml(+3 -2)📄 Description
This change fixes the composite action setup handling of inputs.
All inputs are taken from the env now. The env is composed of
the 'level above'.
For example:
Before this change the env setup for steps, actions and composite
run contexts was harder to understand as all parts looked into
one of these: parent run context, step, action, composite run context.
Now the 'data flow' is from higher levels to lower levels which should
make it more clean.
ToDo before merging
add test for event inputs (e.g.Do not work in act yet. Here are some tests that show the support implemented: https://github.com/nektos/act/pull/1363workflow_dispatch)ActionRepositoryandActionRefFixes #1319
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.