Skip to content

Commit

Permalink
fix: Fetch all tags in create-release-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Jun 18, 2024
1 parent 7cdfdf3 commit 376682e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/create-release-branch-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24861,6 +24861,7 @@ async function main(input) {
const repo = input.repo.split("/")[1];
const remote = `https://${input.githubToken}@github.com/${input.repo}.git`;
cloneFromGitHub(input.repo, { token: input.githubToken, branch: input.branch });
command_sh("git fetch --tags");
const version = input.version ?? command_sh("git describe", { cwd: repo }).trimEnd();
lib_core.setOutput("version", version);
let branch;
Expand Down
1 change: 1 addition & 0 deletions src/create-release-branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export async function main(input: Input) {
const remote = `https://${input.githubToken}@github.com/${input.repo}.git`;

git.cloneFromGitHub(input.repo, { token: input.githubToken, branch: input.branch });
sh("git fetch --tags");

const version = input.version ?? sh("git describe", { cwd: repo }).trimEnd();
core.setOutput("version", version);
Expand Down

0 comments on commit 376682e

Please sign in to comment.