Skip to content

Commit 56d3e5d

Browse files
committed
Remove '/refs' from ref
e69e455
1 parent 4f5673a commit 56d3e5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ const main = async () => {
4242
}
4343

4444
if (merge_method === 'fast-forward') {
45-
core.info('Updating to: ' + pullRequest.data.base.ref + '@' + pullRequest.data.head.sha);
45+
core.info('Updating to: ' + 'heads/' + pullRequest.data.base.ref + '@' + pullRequest.data.head.sha);
4646
await octokit.git.updateRef({
4747
force: false,
4848
...context.repo,
4949
...context.owner,
50-
ref: 'refs/heads/' + pullRequest.data.base.ref,
50+
ref: 'heads/' + pullRequest.data.base.ref,
5151
sha: pullRequest.data.head.sha,
5252
});
5353
} else {

0 commit comments

Comments
 (0)