mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
fix(ci): fallback to github.sha in case of tag
tag pushes couldn't compute the hash using the git command
This commit is contained in:
2
.github/workflows/start_slab.yml
vendored
2
.github/workflows/start_slab.yml
vendored
@@ -48,7 +48,7 @@ jobs:
|
||||
- name: Start AWS job in Slab
|
||||
shell: bash
|
||||
run: |
|
||||
GIT_SHA="$(git --no-pager show -s --format="%H" origin/${{ env.GIT_REF }})"
|
||||
GIT_SHA="$(git --no-pager show -s --format="%H" origin/${{ env.GIT_REF }})" || GIT_SHA=${{ github.sha }}
|
||||
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 }}')"
|
||||
|
||||
Reference in New Issue
Block a user