Skip to content

Commit

Permalink
⚡ Install yampl using clevyr/setup-yampl-action
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Mar 7, 2023
1 parent 9a105e3 commit 69e17b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ See the [yampl](https://github.com/clevyr/yampl#readme) readme for more details
- `file` - Path to the file that should be patched.
- `values` - List of values to replace in the provided file.
- `commit_message` - If set, this action will invoke [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) with the given commit message.
- `go_version` - Go version used to install Yampl
- `yampl_version` - Yampl version to install

## Outputs
Expand Down
13 changes: 3 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,17 @@ inputs:
description: Git branch name, where changes should be pushed too. Required if Action is used on the `pull_request` event
required: false
default: ${{ github.head_ref }}
go_version:
description: Go version used to install Yampl
# renovate datasource=docker depName=golang
default: "1.20"
yampl_version:
description: Yampl version to install
# renovate datasource=github-releases depName=clevyr/yampl
default: "v0.3.9"
runs:
using: composite
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ inputs.go_version }}
- name: Install Yampl
shell: bash
run: go install github.com/clevyr/yampl@${{ inputs.yampl_version }}
uses: clevyr/setup-yampl-action@v1
with:
version: ${{ inputs.yampl_version }}
- name: Patch file
shell: bash
env:
Expand Down

0 comments on commit 69e17b3

Please sign in to comment.