You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ Features:
10
10
* Can add a timestamp to a branch name, when `target_branch` is set and `add_timestamp` is `true`. Will create a branch named `${branch_name}/${add_timestamp}`. Great for cron-based updates.
11
11
* As a commit message will use `commit_message` if set, or `commit_prefix` and add changed files or just list changed files.
12
12
* Good to combine with my other action [devops-infra/action-pull-request](https://github.com/devops-infra/action-pull-request).
13
+
* Can use `git push --force` for fast-forward changes.
13
14
14
15
15
16
## Badge swag
@@ -41,22 +42,24 @@ Features:
41
42
add_timestamp: true
42
43
commit_prefix: "[AUTO]"
43
44
commit_message: "Automatic commit"
45
+
force: false
44
46
target_branch: update/version
45
47
```
46
48
47
49
48
-
Input Variable | Required | Default |Description
49
-
:--- | :---: | :---: | :---
50
-
github_token | Yes | `""` | Personal Access Token for GitHub for pushing the code.
51
-
add_timestamp | No | `false` | Whether to add the timestamp to a new branch name. Used when `target_branch` is set. Uses format `%Y-%m-%dT%H-%M-%SZ`.
52
-
commit_prefix | No | `[AUTO-COMMIT]` | Prefix added to commit message.
53
-
commit_message | No | `""` | Full commit message to set.
54
-
target_branch | No | *current branch* | Name of a new branch to push the code into. Creates branch if not existing.
| github_token | Yes | `""` | Personal Access Token for GitHub for pushing the code. |
53
+
| add_timestamp | No | `false` | Whether to add the timestamp to a new branch name. Used when `target_branch` is set. Uses format `%Y-%m-%dT%H-%M-%SZ`. |
54
+
| commit_prefix | No | `[AUTO-COMMIT]` | Prefix added to commit message. |
55
+
| commit_message | No | `""` | Full commit message to set. |
56
+
| force | No | `false` | Whether to use force push for fast-forward changes. Use only if necessary. |
57
+
| target_branch | No | *current branch* | Name of a new branch to push the code into. Creates branch if not existing. |
55
58
56
-
Outputs | Description
57
-
:--- | :---
58
-
files_changed | List of changed files. As returned by `git diff --staged --name-status`.
59
-
branch_name | Name of the branch code was pushed into.
0 commit comments