add Action 'with-post-step'

This commit is contained in:
umarcor
2021-11-27 17:46:47 +01:00
parent 7647c96c79
commit 7d48fcd589
3 changed files with 73 additions and 0 deletions

17
with-post-step/action.yml Normal file
View File

@@ -0,0 +1,17 @@
name: With post step
description: 'Generic JS Action to execute a main command and set a command as a post step.'
inputs:
main:
description: 'Main command/script.'
required: true
post:
description: 'Post command/script.'
required: true
key:
description: 'Name of the state variable used to detect the post step.'
required: false
default: POST
runs:
using: 'node12'
main: 'main.js'
post: 'main.js'