9 lines
316 B
Bash
Executable File
9 lines
316 B
Bash
Executable File
|
|
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
|
|
|