File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ runs:
150150 GPG_PASSPHRASE : ${{ inputs.commit-author-gpg-key-passphrase }}
151151 run : |
152152 # Import GPG key
153- echo "$GPG_PRIVATE_KEY" | gpg --batch --import
153+ echo "${ GPG_PRIVATE_KEY} " | gpg --batch --import
154154
155155 # Get key ID
156156 KEY_ID=$(gpg --list-secret-keys --with-colons | awk -F : ' /^sec/{print $5}' | head -n1)
@@ -170,7 +170,7 @@ runs:
170170 git config --global user.name "${{ inputs.commit-author-name }}"
171171 git config --global user.email "${{ inputs.commit-author-email }}"
172172 git config --global commit.gpgsign true
173- git config --global user.signingkey "$KEY_ID"
173+ git config --global user.signingkey "${ KEY_ID} "
174174 git config --global gpg.program gpg
175175
176176 # Set passphrase environment variable for Git GPG signing
@@ -179,9 +179,9 @@ runs:
179179 export GPG_TTY=$(tty)
180180
181181 # Create the commit (sign with loopback)
182- echo "$GPG_PASSPHRASE" | \
182+ echo "${ GPG_PASSPHRASE} " | \
183183 gpg --batch --yes --passphrase-fd 0 --pinentry-mode loopback \
184- --local-user "$KEY_ID" \
184+ --local-user "${ KEY_ID} " \
185185 --output /dev/null --sign - 2>/dev/null
186186
187187 git add repo-properties.yaml
You can’t perform that action at this time.
0 commit comments