mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-04 22:37:55 +00:00
ignore actions/checkout locally
Signed-off-by: Casey Lee <[email protected]>
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -5,5 +5,6 @@ jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/workflows/check
|
||||
- uses: ./.github/workflows/integration
|
||||
@@ -55,6 +55,12 @@ func (rc *RunContext) newStepExecutor(step *model.Step) common.Executor {
|
||||
)
|
||||
case model.StepTypeUsesActionRemote:
|
||||
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)
|
||||
if err != nil {
|
||||
return common.NewErrorExecutor(err)
|
||||
|
||||
Reference in new issue
Block a user