-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from christopherfrieler/feature/prepare-demo
Prepare GitHub Actions demo
- Loading branch information
Showing
15 changed files
with
1,961 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
Oops, something went wrong.