This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
message="$(git log)"
|
COMMIT_MESSAGE="$(git log)"
|
||||||
if [[ $message == *"__post__"* ]]; then
|
if [[ $COMMIT_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} =~ __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
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user