Commit Graph
27 Commits
Author SHA1 Message Date
14c06ee5e4 enable to resolve commit hash in uses (#530)
Co-authored-by: sinozu <[email protected]>
Co-authored-by: Casey Lee <[email protected]>
2021-02-23 09:50:28 -08:00
9bf37fb868 Fix indent with go fmt (#531)
Co-authored-by: sinozu <[email protected]>
2021-02-17 11:47:59 -08:00
56ec36726b Fix Cartesian product to return empty set if empty set is given (#503)
This fixes #499, where a matrix strategy with only include keys ends up
causing multiple builds.  This bugs appears to have been introduced in #415,
when extra include keys are added in the matrix strategy.  The cause
seems to be because the CartesianProduct function returns an item with
empty keys, instead of return an empty set.

Co-authored-by: Ed Tan <[email protected]>
2021-01-23 14:55:54 -08:00
KADOTA, KyoheiandGitHub 6e1cdeefc0 Fix "reference not found" error on checkout (#433) (#471) 2021-01-14 21:24:17 -08:00
1b38d5c4d9 Fix "reference not found" error (#433)
If an action uses the branch to pin the major version, `- use: user/action@v1`
will stop with an error: "v1: reference not found."

In this case `act` should use refs/remotes/origin/v1 as a name to resolve v1 revision.

Co-authored-by: Casey Lee <[email protected]>
2021-01-11 22:47:33 -08:00
Torbjørn VatnandGitHub 15eaa15a0e GitHub env file support (#426)
* Upgrade to the official golangci-lint action and fix some issues it found

* Update deps

* Remove a shadow warning

* Initialize the splitPattern only once

* Initial attempt at supporting $GITHUB_ENV

Needs some polishing and tests

* Now it's actually working

* Replace golang.org/x/crypto/ssh/terminal with golang.org/x/term

* Disable the issue-228 test again

* The linter is picky

* Discovered that the workflow/envs.txt had to exist in certain cases

* Fix small linter issue
2021-01-11 22:39:43 -08:00
8887daa3e7 Fix tests if there are hooks generated by templates (#434)
If there are custom hooks in ~/.git_template/hooks,
they can occur an error on such as pre-commit hooks.

Co-authored-by: Casey Lee <[email protected]>
2021-01-11 22:35:57 -08:00
85a47838fd use t.Cleanup and prefer assert.NoError over .Nil (#309)
Co-authored-by: Casey Lee <[email protected]>
2020-07-20 07:35:43 -07:00
dfd1fee7fe Pull latest changes from ref using cached repo (#267)
* Pull latest changes from ref using cached repo

Act switched from checking out a branch to checking out
a hash in order to resolve #24 - see
bc5c23e8e4

This had a side effect of preventing `w.Pull()` from updating
to the latest commit if a ref was a branch/tag and the repo
already exists on disk.

This commit checks if input.Ref is equivalent to the resolved
hash, and runs `r.Fetch()` and checks out the branch for input.Ref
if it is different. `w.Pull()` can then pull the latest changes
before we checkout `*hash` again like normal

* Extract CloneIfRequired to reduce cyclomatic complexity

Co-authored-by: Casey Lee <[email protected]>
2020-06-09 07:43:26 -07:00
Josh SorefandGitHub 2097a3c017 Spelling (#240)
* spelling: cartesian

* spelling: deferring

* spelling: marshal
2020-05-18 09:53:42 -07:00
Máximo CuadrosandGitHub f6e37a8d67 *: update go-git import (#194) 2020-04-16 16:24:30 -07:00
Casey Lee f5e67f2b86 fix #150 - disable dryrun in git clone 2020-03-14 00:13:18 -07:00
Casey Lee e33606361f tone down verbosity 2020-03-06 10:25:18 -08:00
Casey LeeandGitHub c32a87c6dc fix #128: guard against empty actionName when 'uses: ./' (#130)
* fix #128: guard against empty actionName when 'uses: ./'

* fix #129 - force image name to be lowercase
2020-03-06 10:17:20 -08:00
Casey Lee 8696b42178 gofmt 2020-02-25 16:58:26 -08:00
Casey Lee 037e08a3a7 integration test 2020-02-24 12:48:12 -08:00
Casey Lee 01876438c2 shared container for job 2020-02-23 15:01:25 -08:00
Casey Lee e371fa8c49 stop overwritting gitconfig
Signed-off-by: Casey Lee <[email protected]>
2020-02-20 21:06:30 -05:00
Casey Lee 58731e8d9b fixes #90 - hard reset when using a version for an action
Signed-off-by: Casey Lee <[email protected]>
2020-02-20 21:06:28 -05:00
Casey Lee f8fb88816a matrix is done
Signed-off-by: Casey Lee <[email protected]>
2020-02-20 21:06:03 -05:00
Casey Lee 5b7019cd0b skip unsupported platforms
Signed-off-by: Casey Lee <[email protected]>
2020-02-20 21:06:01 -05:00
Casey Lee f7252cbcf9 add commands support
Signed-off-by: Casey Lee <[email protected]>
2020-02-20 21:05:42 -05:00
Casey Lee 033168228b cleanup logging
Signed-off-by: Casey Lee <[email protected]>
2020-02-20 21:05:40 -05:00
Casey Lee 835b36cb63 ci tests
Signed-off-by: Casey Lee <[email protected]>
2020-02-20 21:05:36 -05:00
Casey Lee 0582306861 unit tests
Signed-off-by: Casey Lee <[email protected]>
2020-02-20 21:05:31 -05:00
Casey Lee 532af98aef successfully able to run simple workflows
Signed-off-by: Casey Lee <[email protected]>
2020-02-20 21:05:25 -05:00
Casey Lee 8c49ba0cec initial load of yaml working 2020-02-04 16:38:41 -08:00