mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-26 00:15:36 +00:00
added files for github action
This commit is contained in:
parent
d356fa0d0b
commit
da398765b8
11
action.yml
Normal file
11
action.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
name: 'YAML processor'
|
||||||
|
description: 'YAML processor for running in Github action'
|
||||||
|
inputs:
|
||||||
|
cmd:
|
||||||
|
description: 'The Command which should be run'
|
||||||
|
required: true
|
||||||
|
runs:
|
||||||
|
using: 'docker'
|
||||||
|
image: 'github-action/Dockerfile'
|
||||||
|
args:
|
||||||
|
- ${{ inputs.cmd }}
|
5
github-action/Dockerfile
Normal file
5
github-action/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM mikefarah/yq:3
|
||||||
|
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
4
github-action/entrypoint.sh
Executable file
4
github-action/entrypoint.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh -l
|
||||||
|
|
||||||
|
echo "$1"
|
||||||
|
eval $1
|
Loading…
Reference in New Issue
Block a user