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
| target_branch | No | *current branch* | Name of a new branch to push the code into. Creates branch if not existing. |
77
77
78
+
78
79
### 📤 Output Parameters
79
80
80
81
| Output | Description |
@@ -109,6 +110,7 @@ jobs:
109
110
commit_message: "Replace foo with bar"
110
111
```
111
112
113
+
112
114
### 🔀 Advanced Example: Commit, Push, and Create Pull Request
113
115
114
116
Commit and push changes to a new branch and create a pull request using [devops-infra/action-pull-request](https://github.com/devops-infra/action-pull-request).
@@ -140,6 +142,7 @@ jobs:
140
142
title: ${{ github.event.commits[0].message }}
141
143
```
142
144
145
+
143
146
### 💪 Force Push Example: Amending Previous Commit
144
147
145
148
When you need to amend the previous commit and force push (useful for fixing commit messages or adding forgotten changes).
@@ -174,6 +177,7 @@ jobs:
174
177
force_with_lease: true # Safer force push option
175
178
```
176
179
180
+
177
181
### 📝 Amend Options
178
182
179
183
When using `amend: true`, you have several options for handling the commit message:
0 commit comments