Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 1.54 KB

File metadata and controls

66 lines (53 loc) · 1.54 KB

vwt-ip-action-modules

These are actions which are used in our workflows.

Actions

Brew and git action

Input parameters
  • git_token (this is a token required to allow data modules to be imported)
Example of use brew and git
  - name: Setup git token and brew
    id: brew_and_git
    uses: recognizegroup/vwt-ip-action-modules/.github/actions/brew_and_gittoken@{desired version}
    with:
      git_token: ${{ secrets.TEAM_ORANGE_GIT_TOKEN }}

Terragrunt apply

Input parameters
  • webhook (Webhook is used for notifying when terragrunt apply fails)
Example of use terragrunt apply

By the environement parameters you should set directory the

  • TERRAGRUNT_DOWNLOAD:
  • TF_PLUGIN_CACHE_DIR

example with environment

env:
  TERRAGRUNT_DOWNLOAD: ${{ github.workspace }}/.terragrunt
  TF_PLUGIN_CACHE_DIR: ${{ github.workspace }}/.terragrunt/plugin-cache

Under steps add

  - name: Terragrunt apply
    id: terragrunt_apply
    uses: recognizegroup/vwt-ip-action-modules/.github/actions/terragrunt_apply@{desired version}
    with:
      webhook: ${{ secrets.TEAMS_WEBHOOK_URL }}
      terragrunt_download_directory: $TERRAGRUNT_DOWNLOAD
      tf_plugin_directory: $TF_PLUGIN_CACHE_DIR

Workflows

Pr title check

name: PR Title Checker
on:
  pull_request:
    branches:
      - develop
    types:
      - opened
      - edited
      - synchronize

jobs:
  check-pr-title:
    uses: recognizegroup/vwt-ip-action-modules/.github/workflows/pull_request_title.yaml@{desired version}