diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index ef90324..b737ee4 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -584,6 +584,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Tag + # only bump v# (e.g., v3) tag if semantic release action publishes any new version + if: ${{ steps.semantic.outputs.new_release_major_version != '' }} run: git tag -f v${MAJOR_VERSION} && git push -f origin v${MAJOR_VERSION} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/dist/index.js b/dist/index.js index 0072142..4e51622 100644 --- a/dist/index.js +++ b/dist/index.js @@ -25040,17 +25040,18 @@ function runAction(inputs) { attempt = 1; _a.label = 2; case 2: - if (!(attempt <= inputs.max_attempts)) return [3 /*break*/, 13]; + if (!(attempt <= inputs.max_attempts)) return [3 /*break*/, 14]; + (0, core_1.info)("::group::Attempt ".concat(attempt)); _a.label = 3; case 3: - _a.trys.push([3, 5, , 12]); + _a.trys.push([3, 5, 12, 13]); // just keep overwriting attempts output (0, core_1.setOutput)(OUTPUT_TOTAL_ATTEMPTS_KEY, attempt); return [4 /*yield*/, runCmd(attempt, inputs)]; case 4: _a.sent(); (0, core_1.info)("Command completed after ".concat(attempt, " attempt(s).")); - return [3 /*break*/, 13]; + return [3 /*break*/, 14]; case 5: error_2 = _a.sent(); if (!(attempt === inputs.max_attempts)) return [3 /*break*/, 6]; @@ -25076,11 +25077,14 @@ function runAction(inputs) { (0, core_1.info)("Attempt ".concat(attempt, " failed. Reason: ").concat(error_2.message)); } _a.label = 11; - case 11: return [3 /*break*/, 12]; + case 11: return [3 /*break*/, 13]; case 12: + (0, core_1.info)("::endgroup::"); + return [7 /*endfinally*/]; + case 13: attempt++; return [3 /*break*/, 2]; - case 13: return [2 /*return*/]; + case 14: return [2 /*return*/]; } }); });