From a2d0b5dfb60c804ea6664b1df6015ff1e366a152 Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Fri, 6 Aug 2021 15:22:43 -0700 Subject: [PATCH] Testing a manual clone of the repo --- .github/workflows/detection-testing.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/detection-testing.yml b/.github/workflows/detection-testing.yml index 134832beee..eacb813b49 100644 --- a/.github/workflows/detection-testing.yml +++ b/.github/workflows/detection-testing.yml @@ -52,7 +52,18 @@ jobs: run: | echo "Just print the result of git branch -a --contains $GITHUB_SHA" - git branch -a --contains $GITHUB_SHA + REAL_BRANCH=$(git branch -a --contains $GITHUB_SHA | tail -n1 | cut -d'/' -f3') + mkdir tempFolder + cd tempFolder + git clone --branch $REAL_BRANCH ${{ secrets.GITHUB_TOKEN }}@$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/ + ls -lah + git config user.email "research@splunk.com" + git config user.name "research bot" + touch test.file + git add test.file + git commit --allow-empty -m "Doing a test commit" + git push + #echo "Show a big log of the past 10 commits" #git log --pretty=oneline | head -n 2 #echo "Attempt 1"