Using the github-push-action action

This commit is contained in:
pyth0n1c
2021-08-05 16:19:21 -07:00
parent 50a780a00f
commit d1ee56e2e1
+13 -9
View File
@@ -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
# fi
- name: Puish Changes
uses: ad-m/github-push-action@master
with:
github_token: $
branch: $