This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
|
||||
message="$(git log)"
|
||||
if [[ $message == *"__post__"* ]]; then
|
||||
curl -u "$INPUT_LISTMONK_USER:$INPUT_LISTMONK_PASS" -X GET 'https://mailer.tarupgard.com/api/campaigns?page=1&per_page=100'
|
||||
COMMIT_MESSAGE="$(git log)"
|
||||
if [[ $COMMIT_MESSAGE == *"__post__"* ]]; then
|
||||
[[ ${COMMIT_MESSAGE} =~ __post__([[:digit:]]{6}) ]] && POST_NUMBER=${BASH_REMATCH[1]}
|
||||
echo $POST_NUMBER
|
||||
# curl -u "$INPUT_LISTMONK_USER:$INPUT_LISTMONK_PASS" -X GET 'https://mailer.tarupgard.com/api/campaigns?page=1&per_page=100'
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user