Skip to content

Commit 6d4d98e

Browse files
committed
github action: fast forward workflow
1 parent fdf5b2e commit 6d4d98e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Fast-forward between branches
3+
"on":
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'The branch name or commit to fast-forward from'
8+
default: 'master'
9+
type: string
10+
to_branch:
11+
description: 'The branch name to fast-forward to'
12+
default: 'managed-services'
13+
type: string
14+
jobs:
15+
fast-forward:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
ref: ${{ github.event.inputs.ref }}
21+
fetch-depth: 0
22+
- run: |
23+
git fetch origin ${{ github.event.inputs.ref }}:${{ github.event.inputs.to_branch }}
24+
git push origin ${{ github.event.inputs.to_branch }}

0 commit comments

Comments
 (0)