Skip to content

clevyr/yampl-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yampl-action

This action runs yampl to template values in a yaml file.

See the yampl readme for more details on yampl templating capabilities.

Usage

Inputs

Name Description Required Default
file Path to the file that should be patched. true
vars List of vars to replace in the provided file. true
commit_message If set, this action will invoke stefanzweifel/git-auto-commit-action with the given commit message. false ""
yampl_version The Yampl version to install. false latest

Outputs

None

Example Workflow

Here is an example that fetches a separate deployment repo and patches its configuration.

name: Patch Configuration

on: push

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - id: short-sha
        uses: benjlevesque/short-sha@v1.2

      - name: Bump version
        uses: clevyr/yampl-action@v1
        with:
          file: deployment.yaml
          vars: |
            tag=${{ github.sha }}
          commit_message: "chore: Bump deployment to ${{ steps.short-sha.outputs.sha }}"