Skip to content

Commit 6c519cc

Browse files
committed
Fix creating refs with the GitHub API
See octokit/rest.js#339 (comment)
1 parent 22cba57 commit 6c519cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/release-branch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
9494
const branch = process.env.BRANCH;
9595
const sha = process.env.SHA;
96-
const ref = `heads/${branch}`;
96+
const ref = `refs/heads/${branch}`;
9797
9898
await github.rest.git.createRef({
9999
owner,

.github/workflows/tag.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ jobs:
134134
const tag = await github.rest.git.createRef({
135135
owner,
136136
repo,
137-
ref: `tags/v${version}`,
137+
ref: `refs/tags/v${version}`,
138138
sha: tagSha,
139139
});
140140
console.log("Created tag ref:", tag.data.url);

0 commit comments

Comments
 (0)