We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdf5b2e commit 6d4d98eCopy full SHA for 6d4d98e
.github/workflows/fast-forward-branch.yaml
@@ -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
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