test
All checks were successful
Push to main / Reset-Version-Tag (push) Successful in 5s

This commit is contained in:
Bryce Thorup
2024-08-30 14:36:20 -06:00
parent 6052cc0a9f
commit 2254f431f8
3 changed files with 9 additions and 3 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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"