Skip to content

Commit 3df888b

Browse files
[CLIENT-2160] CI/CD: add workflow to fast forward master to stage branch (#374)
1 parent 5285ae6 commit 3df888b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ff-master-stage.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
issue_comment:
3+
types: [created]
4+
5+
jobs:
6+
fast_forward_job:
7+
name: Fast Forward
8+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/fast-forward')
9+
runs-on: ubuntu-latest
10+
steps:
11+
# To use this repository's private action, you must check out the repository
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
# Basic use case example
15+
- name: Fast Forward PR
16+
id: ff-action
17+
uses: ./
18+
with:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
success_message: 'Success! Fast forwarded master to stage! ```git checkout master && git merge stage --ff-only``` '
21+
failure_message: 'Failed! Cannot do fast forward!'
22+
staging_branch: 'stage'
23+
production_branch: 'master'

0 commit comments

Comments
 (0)