mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
Testing a manual clone of the repo
This commit is contained in:
@@ -52,7 +52,18 @@ jobs:
|
||||
run: |
|
||||
|
||||
echo "Just print the result of git branch -a --contains $GITHUB_SHA"
|
||||
git branch -a --contains $GITHUB_SHA
|
||||
REAL_BRANCH=$(git branch -a --contains $GITHUB_SHA | tail -n1 | cut -d'/' -f3')
|
||||
mkdir tempFolder
|
||||
cd tempFolder
|
||||
git clone --branch $REAL_BRANCH ${{ secrets.GITHUB_TOKEN }}@$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/
|
||||
ls -lah
|
||||
git config user.email "research@splunk.com"
|
||||
git config user.name "research bot"
|
||||
touch test.file
|
||||
git add test.file
|
||||
git commit --allow-empty -m "Doing a test commit"
|
||||
git push
|
||||
|
||||
#echo "Show a big log of the past 10 commits"
|
||||
#git log --pretty=oneline | head -n 2
|
||||
#echo "Attempt 1"
|
||||
|
||||
Reference in New Issue
Block a user