Skip to content

Commit 055b529

Browse files
Update update_central_repo.yml
1 parent bd62aba commit 055b529

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/update_central_repo.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
const owner = context.repo.owner;
3131
const repo = context.repo.repo;
3232
const releaseTag = context.payload.release.tag_name;
33+
if (!releaseTag) {
34+
const latestRelease = await github.rest.repos.getLatestRelease({ owner, repo });
35+
releaseTag = latestRelease.data.tag_name;
36+
console.log(`No tag in payload. Using latest release tag: ${releaseTag}`);
37+
}
3338
3439
// Get the release by tag name
3540
const release = await github.rest.repos.getReleaseByTag({

0 commit comments

Comments
 (0)