From 99f87c82efa9bcb1681e7230e4e26558dc9ae0bc Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Tue, 3 Aug 2021 15:35:08 -0700 Subject: [PATCH] Getting the branch name associated with the tag? --- .github/workflows/detection-testing.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/detection-testing.yml b/.github/workflows/detection-testing.yml index 50fee0fb9f..2dc7c54d04 100644 --- a/.github/workflows/detection-testing.yml +++ b/.github/workflows/detection-testing.yml @@ -54,9 +54,11 @@ jobs: pip install -q -r requirements.txt echo "BRANCH ${{ steps.vars.outputs.branch }}" echo "PR NUMBER ${{ github.event.issue.number }}" + SIMPLE_BRANCH=`git branch -a --contains `${{ steps.vars.outputs.branch }}` + echo simple_branch $SIMPLE_BRANCH #if [[ ! -z "${{ github.event.issue.pull_request }}" && ! -z "${{ github.event.issue.number }}" ]]; then - # python3 main.py -b ${{ steps.vars.outputs.branch }} -pr ${{ github.event.issue.number }} + # python3 main.py -b $SIMPLE_BRANCH -pr ${{ github.event.issue.number }} # #else - # python3 main.py -b ${{ steps.vars.outputs.branch }} + # python3 main.py -b $SIMPLE_BRANCH #fi \ No newline at end of file