ignore actions/checkout locally
Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
835b36cb63
commit
a21d4bbd90
2 changed files with 7 additions and 0 deletions
1
.github/workflows/push.yml
vendored
1
.github/workflows/push.yml
vendored
|
@ -5,5 +5,6 @@ jobs:
|
||||||
ci:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
- uses: ./.github/workflows/check
|
- uses: ./.github/workflows/check
|
||||||
- uses: ./.github/workflows/integration
|
- uses: ./.github/workflows/integration
|
||||||
|
|
|
@ -55,6 +55,12 @@ func (rc *RunContext) newStepExecutor(step *model.Step) common.Executor {
|
||||||
)
|
)
|
||||||
case model.StepTypeUsesActionRemote:
|
case model.StepTypeUsesActionRemote:
|
||||||
remoteAction := newRemoteAction(step.Uses)
|
remoteAction := newRemoteAction(step.Uses)
|
||||||
|
if remoteAction.Org == "actions" && remoteAction.Repo == "checkout" {
|
||||||
|
return func(ctx context.Context) error {
|
||||||
|
common.Logger(ctx).Debugf("Skipping actions/checkout")
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
cloneDir, err := ioutil.TempDir(rc.Tempdir, remoteAction.Repo)
|
cloneDir, err := ioutil.TempDir(rc.Tempdir, remoteAction.Repo)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return common.NewErrorExecutor(err)
|
return common.NewErrorExecutor(err)
|
||||||
|
|
Loading…
Add table
Reference in a new issue