repair creating ref

This commit is contained in:
jpaul 2023-11-21 14:14:55 +01:00
parent 38a653dad2
commit ab28789618
3 changed files with 3 additions and 3 deletions

2
dist/cleanup/index.js generated vendored
View File

@ -74986,7 +74986,7 @@ function createRef(sha) {
return __awaiter(this, void 0, void 0, function* () {
try {
const commitSha = getCommitSha();
const ref = c.METRIC_PATH + commitSha;
const ref = 'refs/' + c.METRIC_PATH + '/' + commitSha;
core.info(`creating reference with ref '${ref}' for metrics tree ${sha}`);
const octokit = new rest_1.Octokit({
auth: getGitHubToken(),

2
dist/main/index.js generated vendored
View File

@ -76062,7 +76062,7 @@ function createRef(sha) {
return __awaiter(this, void 0, void 0, function* () {
try {
const commitSha = getCommitSha();
const ref = c.METRIC_PATH + commitSha;
const ref = 'refs/' + c.METRIC_PATH + '/' + commitSha;
core.info(`creating reference with ref '${ref}' for metrics tree ${sha}`);
const octokit = new rest_1.Octokit({
auth: getGitHubToken(),

View File

@ -188,7 +188,7 @@ export async function createPRComment(content: string): Promise<void> {
export async function createRef(sha: string) {
try {
const commitSha = getCommitSha()
const ref = c.METRIC_PATH + commitSha
const ref = 'refs/' + c.METRIC_PATH + '/' + commitSha
core.info(`creating reference with ref '${ref}' for metrics tree ${sha}`);
const octokit = new Octokit({
auth: getGitHubToken(),