Skip to content

Commit ab3cb28

Browse files
committed
Fix signing of multiple files
1 parent a552cd6 commit ab3cb28

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

garasign/gpg-sign/action.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,13 @@ runs:
4646
password: ${{ inputs.artifactory_password }}
4747
registry: ${{ inputs.artifactory_registry }}
4848

49-
- name: "Create detached signature for filename"
49+
- name: "Create detached signature for file"
5050
run: |
51-
export filenames="${{ inputs.filenames }}"
52-
for filename in "${filenames[@]}"
53-
do
54-
podman run \
55-
--env-file=envfile \
56-
--rm \
57-
-v $(pwd):$(pwd) \
58-
-w $(pwd) \
59-
${{ inputs.artifactory_registry }}/${{ inputs.artifactory_image }} \
60-
/bin/bash -c "gpgloader && gpg --detach-sign --armor --output ${{ inputs.filename }}.sig ${{ inputs.filename }}"
61-
done
62-
shell: bash
51+
podman run \
52+
--env-file=envfile \
53+
--rm \
54+
-v $(pwd):$(pwd) \
55+
-w $(pwd) \
56+
${{ inputs.artifactory_registry }}/${{ inputs.artifactory_image }} \
57+
/bin/bash -c 'gpgloader && for filename in "${{ inputs.filenames }}" do; gpg --detach-sign --armor --output ${filename}.sig ${filename}; done'
58+
shell: bash

0 commit comments

Comments
 (0)