From 938bb742b68f5b5c4f2d05c678d255d71b6f51ec Mon Sep 17 00:00:00 2001 From: Tanner Lewis Date: Thu, 19 Sep 2024 09:35:00 -0500 Subject: [PATCH] Remove git logic from action Signed-off-by: Tanner Lewis --- entrypoint.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index cb7c0e6..42fc2ca 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,19 +1,7 @@ #!/bin/bash -printenv - -if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then - branch_name="${{ github.event.pull_request.head.ref }}" - #pr_repo_url="https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git" -else - branch_name="${GITHUB_REF_NAME}" - #pr_repo_url="https://github.com/${{ github.repository }}.git" -fi -pr_repo_url="https://github.com/${GITHUB_REPOSITORY}.git" - - cd /webhook-trigger || exit -echo "Running jenkins test on repo: $pr_repo_url and branch: $branch_name" +echo "Executing jenkins webhook trigger for url: $INPUT_JENKINS_URL and job: $INPUT_JOB_NAME" python3 default_webhook_trigger.py \ --jenkins_url="${INPUT_JENKINS_URL}" \ --pipeline_token="${INPUT_API_TOKEN}" \