From a845358ed76efae67a0fd04e7dae5faf5d3f1fbb Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Thu, 5 Aug 2021 13:37:01 -0700 Subject: [PATCH] fixing branch path --- .github/workflows/detection-testing.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/detection-testing.yml b/.github/workflows/detection-testing.yml index bdbf82ee2c..b62a027518 100644 --- a/.github/workflows/detection-testing.yml +++ b/.github/workflows/detection-testing.yml @@ -36,7 +36,7 @@ jobs: - name: Get branch and PR required for detection testing main.py id: vars run: | - echo ::set-output name=tag::${GITHUB_REF#refs/tags/} + echo ::set-output name=tag::${GITHUB_REF#refs/tags/remotes/origin} #Set up credentials in the environment so that boto will be able to find them - uses: aws-actions/configure-aws-credentials@v1 @@ -62,8 +62,8 @@ jobs: touch test.file git add test.file git commit --allow-empty -m "Doing a test commit" - git push origin HEAD:refs/heads/remote/origin/$THE_BRANCH - + #git push origin HEAD:refs/heads/remote/origin/$THE_BRANCH + git push #BRANCH_NAME=`git branch -a --contains ${{ steps.vars.outputs.branch }} | head -n1 | cut -d' ' -f2` #git log --pretty=oneline | head -n 1 | tail -n 1 | cut -d' ' -f 1 | tr "*" " " | sed 's/^[[:space:]]*//g'