Skip to content

Commit a4b69b4

Browse files
authored
Update README.md
1 parent 1433f62 commit a4b69b4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
118118
- [Checkout multiple repos (private)](#Checkout-multiple-repos-private)
119119
- [Checkout pull request HEAD commit instead of merge commit](#Checkout-pull-request-HEAD-commit-instead-of-merge-commit)
120120
- [Checkout pull request on closed event](#Checkout-pull-request-on-closed-event)
121+
- [Push a commit using the built-in token](#Push-a-commit-using-the-built-in-token)
121122
122123
## Fetch all history for all tags and branches
123124
@@ -213,6 +214,24 @@ jobs:
213214
- uses: actions/checkout@v2
214215
```
215216

217+
## Push a commit using the built-in token
218+
219+
```yaml
220+
on: push
221+
jobs:
222+
build:
223+
runs-on: ubuntu-latest
224+
steps:
225+
- uses: actions/checkout@v2
226+
- run: |
227+
date > generated.txt
228+
git config user.name github-actions
229+
git config user.email github-actions-bot@users.noreply.github.com
230+
git add .
231+
git commit -m "generated"
232+
git push
233+
```
234+
216235
# License
217236

218237
The scripts and documentation in this project are released under the [MIT License](LICENSE)

0 commit comments

Comments
 (0)