Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b980052

Browse files
committed
Add code to git example
1 parent 7f32f5a commit b980052

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@master
17-
...
18-
- run: |
17+
- name: Create local changes
18+
run: |
1919
...
20-
- uses: ad-m/github-push-action@master
20+
- name: Add files
21+
run: |
22+
git config --local user.email "[email protected]"
23+
git config --local user.name "GitHub Action"
24+
git commit -m "Add changes" -a
25+
- name: Commit changes
26+
uses: ad-m/github-push-action@master
2127
with:
2228
github_token: ${{ secrets.GITHUB_TOKEN }}
2329
```

0 commit comments

Comments
 (0)