diff --git a/action.sh b/action.sh index eb6cc33..a357a69 100755 --- a/action.sh +++ b/action.sh @@ -1,8 +1,6 @@ -git pull -git log message="$(git log)" -$message if [[ $message == *"__post__"* ]]; then - "It's there!" + curl -u "$INPUT_LISTMONK_USER:$LISTMONK_PASS" -X GET 'https://mailer.tarupgard.com/api/campaigns?page=1&per_page=100' fi + diff --git a/action.yaml b/action.yaml index 090d115..8defcab 100644 --- a/action.yaml +++ b/action.yaml @@ -1,6 +1,13 @@ 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" +inputs: + listmonk_user: + description: Username for interacting with listmonk + required: true + listmonk_pass: + description: Password for interacting with listmonk + required: true runs: using: "composite" steps: