Skip to content

Commit

Permalink
Adding refs/heads to the conditional
Browse files Browse the repository at this point in the history
- Somehow the test run sid `origin/heads` but then this did not work
  • Loading branch information
estebanlanderreche-rl committed Jul 11, 2024
1 parent 14fab45 commit 7818789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async function promiseAllInBatches(subtreeSplits: subtreeSplit[], batchSize: num
return;
}
let branch = '';
if (context.ref.startsWith("origin/heads")) {
if (context.ref.startsWith("origin/heads") || context.ref.startsWith("refs/heads")) {
branch = context.ref.split('/').slice(2).join("/")
}
else {
Expand Down

0 comments on commit 7818789

Please sign in to comment.