Skip to content

Commit

Permalink
Added commands input
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilleDF committed Nov 19, 2019
1 parent 691bfc3 commit 3b28bc3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: GuilleDF/[email protected]
- name: Build
run: buck build :ext2fs

- name: Buck build
uses: GuilleDF/[email protected]
with:
commands: buck build :ext2fs
```
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: "GuilleDF's Buckaroo action"
description: "Use buck and buckaroo from the CI"
inputs:
commands:
description: "Semicolon-separated commands to run"
required: true
default: echo "No commands executed"
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.commands }}
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

eval $*

0 comments on commit 3b28bc3

Please sign in to comment.