Getting the branch name associated with the tag?

This commit is contained in:
pyth0n1c
2021-08-03 15:35:08 -07:00
parent ab86cbce34
commit 99f87c82ef
+4 -2
View File
@@ -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