ci: do not fail signed-repo publish on chmod of gpg signatures
repo-add -s already wrote the signed db; chmod a+r on .sig files returned EPERM and rolled back the stage dir.
This commit is contained in:
parent
055d92cc5a
commit
64aa3611b4
1 changed files with 4 additions and 2 deletions
|
|
@ -243,8 +243,10 @@ publish_tree() {
|
||||||
parent="$(dirname "$DEST")"
|
parent="$(dirname "$DEST")"
|
||||||
dest_name="$(basename "$DEST")"
|
dest_name="$(basename "$DEST")"
|
||||||
mkdir -p "$parent"
|
mkdir -p "$parent"
|
||||||
chmod a+rX "$STAGE"
|
chmod a+rX "$STAGE" || true
|
||||||
find "$STAGE" -type f -exec chmod a+r {} +
|
# gpg --detach-sign often writes 0600 files the runner cannot chmod;
|
||||||
|
# do not fail the publish after repo-add -s already succeeded.
|
||||||
|
find "$STAGE" -type f -exec chmod a+r {} + || true
|
||||||
prev="$parent/${dest_name}.prev"
|
prev="$parent/${dest_name}.prev"
|
||||||
rm -rf "$prev"
|
rm -rf "$prev"
|
||||||
if [[ -e "$DEST" ]]; then
|
if [[ -e "$DEST" ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue