Add code to git example
This commit is contained in:
parent
7f32f5aa55
commit
b980052ffd
12
README.md
12
README.md
@ -14,10 +14,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
...
|
- name: Create local changes
|
||||||
- run: |
|
run: |
|
||||||
...
|
...
|
||||||
- uses: ad-m/github-push-action@master
|
- name: Add files
|
||||||
|
run: |
|
||||||
|
git config --local user.email "action@github.com"
|
||||||
|
git config --local user.name "GitHub Action"
|
||||||
|
git commit -m "Add changes" -a
|
||||||
|
- name: Commit changes
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user