Skip to content

Merge Fast Forward Only

Actions
Run a git merge --ff-only [branch] in a Github workflow
v1.1.0
Latest
Star (15)

Merge Fast Forward (Github Action)

A simple Github action for run git merge --ff-only BRANCH in a Github CI workflow

Example

Example configuration:

name: 'Merge to Development'
on:
  workflow_dispatch:
  # Optional: A schedule like this would run the merge every night
  schedule:
    - cron:  '0 0 * * *'
  # Add any other trigger you'd like
jobs:
  merge:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          # Fetch the whole history to prevent unrelated history errors
          fetch-depth: '0'
          # The branch you want to checkout (usually equal to `branchtomerge`)
          ref: 'master'
      - name: Merge Fast Forward
        uses: MaximeHeckel/[email protected]
        with:
          # Branch to merge
          branchtomerge: master
          # Branch that will be updated
          branch: release
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Merge Fast Forward Only is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Run a git merge --ff-only [branch] in a Github workflow
v1.1.0
Latest

Merge Fast Forward Only is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.