Skip to content

Commit

Permalink
Fix branch name retrieve on release
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Mar 16, 2021
1 parent bbdd650 commit 33ed98d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/on_release_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ jobs:
const message = context.payload.head_commit.message;
if (!message.startsWith("Merge pull request "))
return "";
if (!message.includes("/release/"))
const match = a.match(/release\/\S+/);
if (!match)
return "";
const branchName = "release/" + message.split("/release/").pop();
const branchName = match[0];
console.log(branchName);
return branchName;
- name: Checkout release branch
Expand Down

0 comments on commit 33ed98d

Please sign in to comment.