From d1ee56e2e171dfd4d3911a089057f7f3365d1bef Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Thu, 5 Aug 2021 16:19:21 -0700 Subject: [PATCH] Using the github-push-action action --- .github/workflows/detection-testing.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/detection-testing.yml b/.github/workflows/detection-testing.yml index a1097c7de8..c189235cc7 100644 --- a/.github/workflows/detection-testing.yml +++ b/.github/workflows/detection-testing.yml @@ -50,19 +50,18 @@ jobs: - name: Run Detection testing timeout-minutes: 120 run: | - echo "Show a big log of the past 10 commits" - git log --pretty=oneline | head -n 2 - echo "Attempt 1" - THE_BRANCH=`git branch -a --contains ${{ steps.vars.outputs.tag }} | tail -n 1 | sed 's/^[[:space:]]*//g'` - echo "Parsed branch name <$THE_BRANCH>" - git checkout $THE_BRANCH + #echo "Show a big log of the past 10 commits" + #git log --pretty=oneline | head -n 2 + #echo "Attempt 1" + #THE_BRANCH=`git branch -a --contains ${{ steps.vars.outputs.tag }} | tail -n 1 | sed 's/^[[:space:]]*//g'` + #echo "Parsed branch name <$THE_BRANCH>" + #git checkout $THE_BRANCH git config user.email "research@splunk.com" git config user.name "research bot" - git config --global push.default simple touch test.file git add test.file git commit --allow-empty -m "Doing a test commit" - git push origin HEAD:refs/heads/$THE_BRANCH + #BRANCH_NAME=`git branch -a --contains ${{ steps.vars.outputs.branch }} | head -n1 | cut -d' ' -f2` @@ -83,4 +82,9 @@ jobs: # else # python3 main.py -b $SIMPLE_BRANCH - # fi \ No newline at end of file + # fi + - name: Puish Changes + uses: ad-m/github-push-action@master + with: + github_token: $ + branch: $ \ No newline at end of file