Skip to content

Commit 1cc9a94

Browse files
authored
Update README.md
1 parent 26df2e7 commit 1cc9a94

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# merge-deploy-action-demo
2-
Be able to fast forward merge without a pull request in the GitHub GUI
2+
Be able to fast forward merge without a pull request in the GitHub GUI.
33

44

5-
A solution to https://stackoverflow.com/questions/24276409/how-to-merge-branches-on-github-com-without-doing-pull-request
5+
A solution to [How to merge branches on github.com without doing pull request?](https://stackoverflow.com/questions/24276409/how-to-merge-branches-on-github-com-without-doing-pull-request) using `actions/github-script@v5`, see [here for action](https://github.com/JEFuller/merge-deploy-action-demo/blob/26df2e798b74782bcb1be586024cdcdd984b2440/.github/workflows/update-other.yml#L7-L19).
6+
7+
Trigger it manually via the [action's page](https://github.com/JEFuller/merge-deploy-action-demo/actions/workflows/update-other.yml):
8+
9+
<img width="878" height="423" alt="Screen Shot 2025-08-05 at 11 36 40" src="https://github.com/user-attachments/assets/c635a35b-2158-4ffa-b689-91b2e5927ffe" />
10+
11+
---
12+
13+
Note: if you have e.g. a [`deploy.yml`](https://github.com/JEFuller/merge-deploy-action-demo/blob/26df2e798b74782bcb1be586024cdcdd984b2440/.github/workflows/deploy.yml) with an `on: push` it will not be trigged (since `updateRef` isn't technically a `push`).
14+
15+
16+
But that can be triggered automaticall using `actions/github-script@v5`, see [here](https://github.com/JEFuller/merge-deploy-action-demo/blob/26df2e798b74782bcb1be586024cdcdd984b2440/.github/workflows/update-other.yml#L21-L32).
17+
18+
Note: the deploy workflow will need to be updated to `on: [push, workflow_dispatch]`:
19+
20+
<img width="513" height="231" alt="Screen Shot 2025-08-05 at 11 38 28" src="https://github.com/user-attachments/assets/020ec622-4fc5-4bb2-b493-400bc585b23c" />

0 commit comments

Comments
 (0)