mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-25 14:56:18 -05: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
|
- name: Create archive
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
paths="${{ inputs.path }}"
|
paths="${{ inputs.path }}"
|
||||||
paths=${paths%$'\n'} # Remove trailing newline
|
paths=${paths%$'\n'} # Remove trailing newline
|
||||||
@ -61,9 +62,9 @@ runs:
|
|||||||
do
|
do
|
||||||
if compgen -G "${target}" > /dev/null
|
if compgen -G "${target}" > /dev/null
|
||||||
then
|
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}")"
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user