Skip to content

Commit 8048977

Browse files
author
rpelau
authored
Create README.md
1 parent 629078c commit 8048977

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# SafePush V1
2+
3+
This action commits files and safe-pushes them to a selected branch of a target repository.
4+
5+
In case of branch changes during the action execution it will try to pull the changes from the remote repo before reattempting to push the commit, 3 times.
6+
7+
If there are no changes to be commited, the action will exit with code 0.
8+
9+
# Usage
10+
11+
<!-- start usage -->
12+
```yaml
13+
- uses: actions/safepush@v1
14+
with:
15+
# User who is pushing the changes
16+
# Required: true
17+
user-name:
18+
19+
# Email of the user who is pushing the changes
20+
# Required: true
21+
user-email:
22+
23+
# Github Token to push to the repository
24+
# Required: true
25+
repo-token:
26+
27+
# Branch to where to push the changes to
28+
# Required: false
29+
# Default: main
30+
branch:
31+
32+
# Commit message
33+
# Required: false
34+
commit-message:
35+
36+
# Repository to push to (can be org/repo-name or just repo-name)
37+
# Required: true
38+
repository:
39+
40+
# Owner of the repository (specify only if repository name does not incluse the owner)
41+
# Required: false
42+
owner:
43+
44+
# Path to the files to push
45+
# Required: false
46+
# Default: .
47+
path:
48+
49+
# Version to include in commit message
50+
# Required: false
51+
version:
52+
```
53+
<!-- end usage -->

0 commit comments

Comments
 (0)