We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd62aba commit 055b529Copy full SHA for 055b529
1 file changed
.github/workflows/update_central_repo.yml
@@ -30,6 +30,11 @@ jobs:
30
const owner = context.repo.owner;
31
const repo = context.repo.repo;
32
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
+ }
38
39
// Get the release by tag name
40
const release = await github.rest.repos.getReleaseByTag({
0 commit comments