Skip to content

Commit

Permalink
adds condition to check if directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh Kennadi committed Sep 10, 2024
1 parent 8eb904e commit ece7745
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ jobs:

- name: Configure GPG
run: |
mkdir -p ~/.gnupg
chmod 700 ~/.gnupg
echo "use-agent" > ~/.gnupg/gpg.conf
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
if [ ! -d "~/.gnupg" ]; then
mkdir -p ~/.gnupg
chmod 700 ~/.gnupg
echo "use-agent" > ~/.gnupg/gpg.conf
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
else
echo "~/.gnupg directory already exists."
fi
- name: Import GPG Key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
Expand Down

0 comments on commit ece7745

Please sign in to comment.