Skip to content

Commit 0d38f15

Browse files
Merge pull request #1 from christopherfrieler/feature/prepare-demo
Prepare GitHub Actions demo
2 parents 368a95e + f664b7f commit 0d38f15

15 files changed

Lines changed: 1961 additions & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# execute-script-action
2+
This is a custom GitHub Action to execute a shell script.
3+
The action will take care of making it executable.
4+
5+
## Build
6+
The action is built as a JavaScript action.
7+
See [Creating a JavaScript action](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action) for a detailed documentation of the setup.
8+
9+
### TL;DR
10+
**Prerequisite:** Node.js 12.x including npm.\
11+
**Install dependencies:** `npm install`\
12+
**Compile [dist](dist):** `node node_modules/@vercel/ncc/dist/ncc/cli.js build index.js --license licenses.txt` (Note: dist needs to be committed.)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: 'Execute Script'
2+
description: 'Execute a shell script.'
3+
inputs:
4+
script:
5+
description: 'script to execute'
6+
required: true
7+
default: 'build.sh'
8+
outputs:
9+
exit-code:
10+
description: 'exit-code of the script'
11+
runs:
12+
using: 'node12'
13+
main: 'dist/index.js'

0 commit comments

Comments
 (0)