Skip to content

Commit a24580e

Browse files
authored
Fixing Pull Request Builds (OpenFeign#992)
This change skips the `sign` script when building a pull request. There is no need for us to sign component until the pull request is accepted.
1 parent 0ed5008 commit a24580e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎travis/sign.sh‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@
1313
# the License.
1414
#
1515

16-
openssl aes-256-cbc -K $encrypted_8beb152aadd6_key -iv $encrypted_8beb152aadd6_iv -in travis/codesigning.asc.enc -out travis/codesigning.asc -d
17-
gpg --fast-import travis/codesigning.asc
16+
# skip signing when building pull requests
17+
if [[ "$TRAVIS_PULL_REQUEST" = "false" ]]; then
18+
echo "[ENVIRONMENT] Preparing Signing Signatures"
19+
openssl aes-256-cbc -K $encrypted_8beb152aadd6_key -iv $encrypted_8beb152aadd6_iv -in travis/codesigning.asc.enc -out travis/codesigning.asc -d
20+
gpg --fast-import travis/codesigning.asc
21+
fi

0 commit comments

Comments
 (0)