Skip to content

Commit

Permalink
push a ramdom file
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalankit committed Feb 11, 2020
1 parent 43868dc commit ae76054
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,25 @@ jobs:
create_issue:
runs-on: ubuntu-latest
steps:
- name: Create issue using REST API
- name: Push a random file
run: |
pwd
ls -a
git init
git remote add origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git"
git config --global user.email "my-bot@bot.com"
git config --global user.name "my-bot"
git fetch
git checkout master
git branch --set-upstream-to=origin/master
git pull
ls -a
echo $RANDOM >> random.txt
ls -a
git add -A
git commit -m"Random file"
git push
- name: Create issue using REST API
run: |
curl --request POST \
--url https://api.github.com/repos/${{ github.repository }}/issues \
Expand Down

0 comments on commit ae76054

Please sign in to comment.