Skip to content

Commit

Permalink
feat: reset gen.lock in github action generation retries
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Dec 3, 2024
1 parent c388440 commit c2dd5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/model/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func runWithVersionFromWorkflowFile(cmd *cobra.Command) error {
if lockfileVersion != "" && lockfileVersion != desiredVersion {
logger.PrintfStyled(styles.DimmedItalic, "Rerunning with previous successful version: %s\n", lockfileVersion)
if env.IsGithubAction() {
files, _ := filepath.Glob("*/gen.lock")
files, _ := filepath.Glob("**/gen.lock")

if len(files) > 0 {
args := append([]string{"checkout", "--"}, files...)
Expand Down

0 comments on commit c2dd5bf

Please sign in to comment.