-
Notifications
You must be signed in to change notification settings - Fork 23
33 lines (30 loc) · 1.2 KB
/
ff-merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Fast-forward merge
# This workflow helps to work around the bug in the **Rebase and Merge** pull requests strategy.
# The bug leads to unsigned commits and prevents using the strategy
# without IOG policy violation (all commits must be signed by PGP signature).
#
# This workflow helps to merge multiple commits from PR to main branch of the repository
# without loosing of PGP signature.
#
# Related GitHub discussions:
# https://github.com/community/community/discussions/10410
# https://github.com/orgs/community/discussions/5524
on:
issue_comment:
types: [created]
jobs:
fast_forward_job:
name: Fast Forward Merge
runs-on: self-hosted
if: |
github.event.issue.pull_request != '' &&
contains(github.event.comment.body, '/fast-forward')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fast Forward Merge
uses: endre-spotlab/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
success_message: 'Success! Fast forwarded ***target_base*** to ***source_head***! ```git checkout target_base && git merge source_head --ff-only``` '
failure_message: 'Failed! Cannot do fast forward!'