Skip to content

GitHub Action for automatically creating release branches with git strip merge strategy.

License

Notifications You must be signed in to change notification settings

milliHQ/gh-action-release-branch

Repository files navigation

GitHub action for releasing Terraform modules

Since Terraform does a full checkout of the GitHub repository on a terraform init it pulls everything that is in the repo.

Since we mostly work with monorepos that also contain large chunks of code or tests that is not used by Terraform we use this action to exclude these files from our releases.

Usage

name: Release

on:
  workflow_dispatch:
    inputs:
      tag:
        description: 'Tag'
        required: true

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      # Do a full checkout (all branches)
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - uses: milliHQ/gh-action-release-branch@v2.0.0
        with:
          release-branch: release
          release-tag: ${{ github.event.inputs.tag }}
          exclude: |
            lib/**/*
            test/**/*

License

Apache-2.0 - see LICENSE for details.

About

GitHub Action for automatically creating release branches with git strip merge strategy.

Topics

Resources

License

Stars

Watchers

Forks