Skip to content

Commit

Permalink
Update parse_issue.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
daniyalj authored Nov 27, 2019
1 parent 1371a04 commit e17505a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions parse_issue.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/bin/sh -l
curl -H "Authorization: token $GITHUB_TOKEN" -X GET https://api.github.com/repos/$INPUT_ORG_NAME/$INPUT_REPO_NAME/issues --header "Content-Type:application/vnd.github.symmetra-preview+json" | jq '.[0] | .body' > issues
curl -H "Authorization: token $GITHUB_TOKEN" -X GET https://api.github.com/repos/$INPUT_ORG_NAME/$INPUT_REPO_NAME/issues --header "Content-Type:application/vnd.github.symmetra-preview+json" | jq '.[0] | .body' > temp_issues
env
sed 's/\"//g' issues > latest_issue
sed 's/\"//g' temp_issues > latest_issue
cat latest_issue
ls
git clone https://github.com/$INPUT_ORG_NAME/$INPUT_REPO_NAME
# git clone https://github.com/$INPUT_ORG_NAME/$INPUT_REPO_NAME
ls
cat latest_issue
mv latest_issue $INPUT_REPO_NAME/issues
mv latest_issue issues
git config --global user.email "$INPUT_GLOBAL_EMAIL"
git config --global user.name "$GITHUB_ACTOR"
cd $INPUT_REPO_NAME
#cd $INPUT_REPO_NAME
git add .
git commit -m "Add latest_issue"
git push https://$INPUT_ORG_NAME:$GITHUB_TOKEN@github.com/$INPUT_ORG_NAME/$INPUT_REPO_NAME.git
cd ..
#cd ..

0 comments on commit e17505a

Please sign in to comment.