fixing branch path

This commit is contained in:
pyth0n1c
2021-08-05 13:37:01 -07:00
parent 40a969ead7
commit a845358ed7
+3 -3
View File
@@ -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'