mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #122] actions/checkout always skipped #84
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#84
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?
Originally created by @alexkli on GitHub (Mar 4, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/122
The standard actions/checkout is always skipped, as the user's local working directory is copied in instead.
However, the checkout action supports checking out other repos or branches etc., in which case it should not be skipped.
Example snippet:
I guess a simple approach is to check whether that action has any
withparameters or not. If yes, run it, if not, skip it.Note the problem is exaggerated as it seems impossible to find a working action that allows running arbitrary
gitcommands as a workaround to this issue.@alexkli commented on GitHub (Mar 4, 2020):
Also, for the first checkout in my example above, the
pathis ignored. It should copy the local dir into thatpathinstead of the workspace root.@alexkli commented on GitHub (Mar 4, 2020):
My temporary workaround was to manually check out that other repo in my local dir first, before starting act.
BTW, thanks for a great tool! Really helped developing my actions! 👍🙏
@yanniszark commented on GitHub (Mar 7, 2020):
Adding another datapoint to this.
I cannot find a way to build a Go project which uses GOPATH.
GOPATH is an (older) Go convention that when importing a package it must be under $GOPATH.
eg for
I must have the directory structure
$GOPATH/github.com/scylladb/scylla-operator/pkg/apisThis is achieved using the path argument in actions/checkout@v2.
However, this isn't working in act so I can't run my workflow locally.
Here is the workflow I'm using for reference: