File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -318,7 +318,9 @@ jobs:
318318 # Commit the change
319319 git config user.name 'github-actions[bot]'
320320 git config user.email 'github-actions[bot]@users.noreply.github.com'
321- git add "modules/${MODULE}/go.mod" "modules/${MODULE}/go.sum"
321+ git add "modules/${MODULE}/go.mod"
322+ # Add go.sum if it was modified
323+ git add "modules/${MODULE}/go.sum" 2>/dev/null || true
322324 git commit -m "chore(${MODULE}): update module path for v${MAJOR_VERSION}
323325
324326This updates the ${MODULE} module path from :
Original file line number Diff line number Diff line change @@ -266,7 +266,9 @@ jobs:
266266 # Commit the change
267267 git config user.name 'github-actions[bot]'
268268 git config user.email 'github-actions[bot]@users.noreply.github.com'
269- git add go.mod go.sum
269+ git add go.mod
270+ # Add go.sum if it was modified
271+ git add go.sum 2>/dev/null || true
270272 git commit -m "chore: update module path for v${MAJOR_VERSION}
271273
272274This updates the module path from :
You can’t perform that action at this time.
0 commit comments