This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
# create_listmonk_campaign
|
# create_listmonk_campaign
|
||||||
|
|
||||||
create a listmonk campaign if the name of the branch being merged includes "post_XXXXXX"
|
create a listmonk campaign if the name of the branch being merged includes "___post___XXXXXX"
|
||||||
|
|||||||
@@ -1 +1,7 @@
|
|||||||
echo $(git rev-parse --abbrev-ref HEAD)
|
#!/bin/bash
|
||||||
|
commit_subject=$(git log -1 --pretty=format:%s)
|
||||||
|
|
||||||
|
regex='Merge pull request #[0-9]+ from .+/(.+)$'
|
||||||
|
[[ $commit_subject =~ $regex ]]
|
||||||
|
branch_name=${BASH_REMATCH[1]}
|
||||||
|
echo $branch_name
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
name: npm-publish
|
name: npm-publish
|
||||||
description: "create a listmonk campaign if the name of the branch being merged includes \"post_XXXXXX\"."
|
description: "create a listmonk campaign if the name of the branch being merged includes \"__post__XXXXXX\"."
|
||||||
author: "Bryce Thorup"
|
author: "Bryce Thorup"
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|||||||
Reference in New Issue
Block a user