Skip to content

Branch Follow Action

Actions
Branch will be moved to most recent tag
1.0.0
Latest
Star (0)

branch-follow-tag

Use case

Keep a branch always referencing to the most recent tag. For instance a stable branch that always points to the last release.

Inputs

Input Description
GITHUB_TOKEN Automatically provided token, that can be used to authenticate on behalf of the GitHub action, with permissions limited to the repository that contains your workflow
SSH_PRIVATE_KEY Deploy key for push. Must be set in the repository settings. This is used by the action to push the fast-forwarded branch/commit/PR.
BRANCH Name of the branch.

Workflow YML

The Action must be run on:push:tags triggers to keep the labels up-to-date and run the fast-forward on command.

name: Fast-Forward

on: 
  push:
    tags:

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: APN-Pucky/branch-follow-tag@main
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          SSH_PRIVATE_KEY: ${{ secrets.GH_SSH }}
          branch: stable

Examples

Branch Follow Action 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

Branch will be moved to most recent tag
1.0.0
Latest

Branch Follow Action 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.