Files
.github
.vscode
cmd
pkg
artifacts
common
container
exprparser
lookpath
model
runner
res
testdata
.github
GITHUB_ENV-use-in-env-ctx
GITHUB_STATE
act-composite-env-test
actions
action1
composite-fail-with-output
docker-local
docker-local-noargs
Dockerfile
action.yml
entrypoint.sh
docker-url
node12
node16
actions-environment-and-context-tests
basic
checkout
commands
composite-fail-with-output
container-hostname
defaults-run
dir with spaces
do-not-leak-step-env-in-composite
docker-action-custom-path
ensure-post-steps
env-and-path
environment-files
environment-files-parser-bug
environment-variables
evalenv
evalmatrix
evalmatrix-merge-array
evalmatrix-merge-map
evalmatrixneeds
evalmatrixneeds2
fail
if-env-act
if-expressions
input-from-cli
inputs-via-env-context
issue-104
issue-1195
issue-122
issue-141
issue-1595
issue-228
issue-597
issue-598
job-container
job-container-invalid-credentials
job-container-non-root
job-needs-context-contains-result
job-nil-step
job-status-check
local-action-docker-url
local-action-dockerfile
local-action-js
local-action-via-composite-dockerfile
localdockerimagetest_
mask-values
matrix
matrix-exitcode
matrix-include-exclude
matrix-with-user-inclusions
networking
nix-prepend-path
no-panic-on-invalid-composite-action
node
non-existent-action
outputs
parallel
path-handling
pull-request
python
remote-action-composite-js-pre-with-defaults
remote-action-docker
remote-action-js
remote-action-js-node-user
runs-on
secrets
set-env-new-env-file-per-step
set-env-step-env-override
shells
steps-context
uses-action-with-pre-and-post-step
uses-and-run-in-one-step
uses-composite
uses-composite-with-error
uses-composite-with-inputs
uses-composite-with-pre-and-post-steps
uses-docker-url
uses-github-empty
uses-github-full-sha
uses-github-noref
uses-github-path
uses-github-root
uses-github-short-sha
uses-nested-composite
uses-workflow
windows-add-env
windows-prepend-path
workdir
workflow_dispatch
workflow_dispatch-scalar
workflow_dispatch-scalar-composite-action
workflow_dispatch_no_inputs_mapping
action.go
action_composite.go
action_test.go
command.go
command_test.go
container_mock_test.go
expression.go
expression_test.go
job_executor.go
job_executor_test.go
logger.go
reusable_workflow.go
run_context.go
run_context_test.go
runner.go
runner_test.go
step.go
step_action_local.go
step_action_local_test.go
step_action_remote.go
step_action_remote_test.go
step_docker.go
step_docker_test.go
step_factory.go
step_factory_test.go
step_run.go
step_run_test.go
step_test.go
workflowpattern
.actrc
.editorconfig
.gitignore
.gitleaksignore
.golangci.yml
.goreleaser.yml
.markdownlint.yml
.mega-linter.yml
.mergify.yml
.prettierignore
.prettierrc.yml
CODEOWNERS
CONTRIBUTING.md
IMAGES.md
LICENSE
Makefile
README.md
VERIFICATION
VERSION
act-cli.nuspec
codecov.yml
go.mod
go.sum
install.sh
main.go
act/pkg/runner/testdata/actions/docker-local-noargs
ChristopherHX 9868e13772 Feature: uses in composite ()
* Feature: uses in composite

* Negate logic

* Reduce complexity

* Update step_context.go

* Update step_context.go

* Update step_context.go

* Fix syntax error in test

* Bump

* Disable usage of actions/setup-node@v2

* Bump

* Fix step id collision

* Fix output command workaround

* Make secrets context inaccessible in composite

* Fix order after adding a workaround (needs tests)

Fixes https://github.com/nektos/act/pull/793#issuecomment-922329838

* Evaluate env before passing one step deeper

If env would contain any inputs, steps ctx or secrets there was undefined behaviour

* [no ci] prepare secret test

* Initial test pass inputs as env

* Fix syntax error

* extend test also for direct invoke

* Fix passing provided env as composite output

* Fix syntax error

* toUpper 'no such secret', act has a bug

* fix indent

* Fix env outputs in composite

* Test env outputs of composite

* Fix inputs not defined in docker actions

* Fix interpolate args input of docker actions

* Fix lint

* AllowCompositeIf now defaults to true

see https://github.com/actions/runner/releases/tag/v2.284.0

* Fix lint

* Fix env of docker action.yml

* Test calling a local docker action from composite

With input context hirachy

* local-action-dockerfile Test pass on action/runner

It seems action/runner ignores overrides of args,
if the target docker action has the args property set.

* Fix exec permissions of docker-local-noargs

* Revert getStepsContext change

* fix: handle composite action on error and continue

This change is a follow up of https://github.com/nektos/act/pull/840
and integrates with https://github.com/nektos/act/pull/793

There are two things included here:

- The default value for a step.if in an action need to be 'success()'
- We need to hand the error from a composite action back to the
  calling executor

Co-authored-by: Björn Brauer <bjoern.brauer@new-work.se>

* Patch inputs can be bool, float64 and string
for workflow_call
Also inputs is now always defined, but may be null

* Simplify cherry-picked commit

* Minor style adjustments

* Remove chmod +x from tests

now fails on windows like before

* Fix GITHUB_ACTION_PATH some action env vars

Fixes GITHUB_ACTION_REPOSITORY, GITHUB_ACTION_REF.

* Add comment to CompositeRestrictions

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>
Co-authored-by: Björn Brauer <bjoern.brauer@new-work.se>
Co-authored-by: Ryan <me@hackerc.at>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-12-22 19:19:50 +00:00
..
2021-12-22 19:19:50 +00:00
2021-12-22 19:19:50 +00:00