isGhAwNativeAction returns true if the action repo is part of the gh-aw native ecosystem (i.e., maintained in the github/gh-aw or github/gh-aw-actions repository). These actions are versioned in lock-step with the CLI and must never be updated beyond the running CLI version.
(repo string)
| 32 | // (i.e., maintained in the github/gh-aw or github/gh-aw-actions repository). These actions |
| 33 | // are versioned in lock-step with the CLI and must never be updated beyond the running CLI version. |
| 34 | func isGhAwNativeAction(repo string) bool { |
| 35 | base := gitutil.ExtractBaseRepo(repo) |
| 36 | return base == "github/gh-aw" || base == "github/gh-aw-actions" |
| 37 | } |
| 38 | |
| 39 | type actionUpdateDeps struct { |
| 40 | getLatestRelease func(ctx context.Context, repo, currentVersion string, allowMajor, verbose bool) (string, string, error) |