act/pkg
Michael Heap 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 <cplee@nektos.com>
2020-06-09 07:43:26 -07:00
..
common Pull latest changes from ref using cached repo (#267) 2020-06-09 07:43:26 -07:00
container Spelling (#240) 2020-05-18 09:53:42 -07:00
model Change -W command to accept a single file 2020-05-26 23:29:50 -04:00
runner Fix using: node12 handling (#243) 2020-05-18 14:31:09 -07:00