Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/actions/pre_post_action/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Pre/Post JS Action"
description: "A GitHub Action with pre and post run scripts"

inputs:
command:
description: Main bash script executed by the step
required: true
default: echo "WARNING - main command not set"

pre-command:
description: Bash command to init before step execution
required: false

post-command:
description: Bash command to clean up after step execution
required: true
default: echo 'WARNING - post command not set'

runs:
using: "node20"
pre: "bundle/index.js"
main: "bundle/index.js"
post: "bundle/index.js"
Loading
Loading