feat(ci): support starting slab with additional user inputs

will serve for passing additional info to the release to make nightly or
public release
This commit is contained in:
youben11
2023-04-04 15:59:02 +01:00
committed by Ayoub Benaissa
parent eaef1665cd
commit 83a73ad5d5

View File

@@ -7,11 +7,17 @@ on:
command:
required: true
type: string
user_inputs:
required: false
type: string
workflow_dispatch:
inputs:
command:
required: true
type: string
user_inputs:
required: false
type: string
env:
GIT_REF: ${{ github.head_ref }}
@@ -42,7 +48,7 @@ jobs:
shell: bash
run: |
GIT_SHA="$(git --no-pager show -s --format="%H" origin/${{ env.GIT_REF }})"
echo -n '{"command": "${{ inputs.command }}", "git_ref": "${{ env.GIT_REF }}", "sha":"'${GIT_SHA}'"}' > command.json
echo -n '{"command": "${{ inputs.command }}", "git_ref": "${{ env.GIT_REF }}", "sha":"'${GIT_SHA}'", "user_inputs": "${inputs.user_inputs}"}' > command.json
cat command.json
SIGNATURE="$(slab/scripts/hmac_calculator.sh command.json '${{ secrets.JOB_SECRET }}')"
curl -v -k \