Skip to content

Commit

Permalink
Merge pull request #1 from christopherfrieler/feature/prepare-demo
Browse files Browse the repository at this point in the history
Prepare GitHub Actions demo
  • Loading branch information
christopherfrieler authored May 13, 2021
2 parents 368a95e + f664b7f commit 0d38f15
Show file tree
Hide file tree
Showing 15 changed files with 1,961 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/actions/execute-script-action/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
12 changes: 12 additions & 0 deletions .github/actions/execute-script-action/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# execute-script-action
This is a custom GitHub Action to execute a shell script.
The action will take care of making it executable.

## Build
The action is built as a JavaScript action.
See [Creating a JavaScript action](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action) for a detailed documentation of the setup.

### TL;DR
**Prerequisite:** Node.js 12.x including npm.\
**Install dependencies:** `npm install`\
**Compile [dist](dist):** `node node_modules/@vercel/ncc/dist/ncc/cli.js build index.js --license licenses.txt` (Note: dist needs to be committed.)
13 changes: 13 additions & 0 deletions .github/actions/execute-script-action/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Execute Script'
description: 'Execute a shell script.'
inputs:
script:
description: 'script to execute'
required: true
default: 'build.sh'
outputs:
exit-code:
description: 'exit-code of the script'
runs:
using: 'node12'
main: 'dist/index.js'
Loading

0 comments on commit 0d38f15

Please sign in to comment.