mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
fix: let artifact_upload
fail if a bash command errors (#3154)
This commit is contained in:
parent
2c03a16a68
commit
94cf85c65a
5
.github/actions/artifact_upload/action.yml
vendored
5
.github/actions/artifact_upload/action.yml
vendored
@ -36,6 +36,7 @@ runs:
|
||||
- name: Create archive
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
shopt -s extglob
|
||||
paths="${{ inputs.path }}"
|
||||
paths=${paths%$'\n'} # Remove trailing newline
|
||||
@ -61,9 +62,9 @@ runs:
|
||||
do
|
||||
if compgen -G "${target}" > /dev/null
|
||||
then
|
||||
pushd "$(dirname "${target}")" || exit 1
|
||||
pushd "$(dirname "${target}")"
|
||||
7zz a -p'${{ inputs.encryptionSecret }}' -bso0 -bsp0 -t7z -ms=on -mhe=on "${{ steps.tempdir.outputs.directory }}/archive.7z" "$(basename "${target}")"
|
||||
popd || exit 1
|
||||
popd
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user