-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1433f62
commit a4b69b4
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,6 +118,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous | |
- [Checkout multiple repos (private)](#Checkout-multiple-repos-private) | ||
- [Checkout pull request HEAD commit instead of merge commit](#Checkout-pull-request-HEAD-commit-instead-of-merge-commit) | ||
- [Checkout pull request on closed event](#Checkout-pull-request-on-closed-event) | ||
- [Push a commit using the built-in token](#Push-a-commit-using-the-built-in-token) | ||
## Fetch all history for all tags and branches | ||
|
@@ -213,6 +214,24 @@ jobs: | |
- uses: actions/checkout@v2 | ||
``` | ||
|
||
## Push a commit using the built-in token | ||
|
||
```yaml | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
date > generated.txt | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "generated" | ||
git push | ||
``` | ||
|
||
# License | ||
|
||
The scripts and documentation in this project are released under the [MIT License](LICENSE) |