diff options
Diffstat (limited to 'pkg/runner/reusable_workflow.go')
-rw-r--r-- | pkg/runner/reusable_workflow.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/pkg/runner/reusable_workflow.go b/pkg/runner/reusable_workflow.go index 717913f..9d87365 100644 --- a/pkg/runner/reusable_workflow.go +++ b/pkg/runner/reusable_workflow.go @@ -225,21 +225,3 @@ func newRemoteReusableWorkflowWithPlat(url, uses string) *remoteReusableWorkflow URL: url, } } - -// deprecated: use newRemoteReusableWorkflowWithPlat -func newRemoteReusableWorkflow(uses string) *remoteReusableWorkflow { - // GitHub docs: - // https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iduses - r := regexp.MustCompile(`^([^/]+)/([^/]+)/.github/workflows/([^@]+)@(.*)$`) - matches := r.FindStringSubmatch(uses) - if len(matches) != 5 { - return nil - } - return &remoteReusableWorkflow{ - Org: matches[1], - Repo: matches[2], - Filename: matches[3], - Ref: matches[4], - URL: "https://github.com", - } -} |