Skip to content

Commit

Permalink
adds logic to reload the agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh Kennadi committed Sep 9, 2024
1 parent a870ba3 commit 26ac4d7
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,17 +23,20 @@ jobs:

- name: Import GPG Key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" > /tmp/private-key.asc
gpg --batch --import /tmp/private-key.asc
gpg --list-secret-keys
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --import
echo "default-cache-ttl 600" >> ~/.gnupg/gpg-agent.conf
echo "max-cache-ttl 7200" >> ~/.gnupg/gpg-agent.conf
gpg-connect-agent reloadagent /bye
env:
GPG_TTY: $(tty)
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}

- name: Build and test post generation
# run: |
# cd Xero-Java
# mvn clean verify -DskipTests=true
run: |
cd Xero-Java
export GPG_TTY=$(tty)
mvn clean verify -DskipTests=true -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}
env:
GPG_TTY: $(tty)

0 comments on commit 26ac4d7

Please sign in to comment.