Skip to content

Commit

Permalink
Remove git logic from action
Browse files Browse the repository at this point in the history
Signed-off-by: Tanner Lewis <lewijacn@amazon.com>
  • Loading branch information
lewijacn committed Sep 19, 2024
1 parent 96a0c1a commit 938bb74
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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}" \
Expand Down

0 comments on commit 938bb74

Please sign in to comment.