mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 03:25:05 -05:00
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:
8
.github/workflows/start_slab.yml
vendored
8
.github/workflows/start_slab.yml
vendored
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user