Skip to content

Commit

Permalink
build: use variable to test-block
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
ckotzbauer committed Dec 24, 2022
1 parent 5b736a8 commit f37f168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
values='{}'
_append REGISTRY_TOKEN "${{ secrets.GHCR_PASSWORD }}"
_append IS_FORK ${{ github.event.pull_request.head.repo.full_name != github.repository }}
encrypted_test_secrets=$(gpg --symmetric --batch --passphrase "${{ github.sha }}" --output - <(echo "$values") | base64 -w0)
echo "encrypted_test_secrets=$encrypted_test_secrets" >> $GITHUB_OUTPUT
Expand All @@ -46,7 +45,8 @@ jobs:
decrypted_value=$(gpg --decrypt --quiet --batch --passphrase "${{ github.sha }}" --output - <(echo "$ENCRYPTED_TEST_SECRETS" | base64 --decode))
REGISTRY_TOKEN=$(_read "REGISTRY_TOKEN")
IS_FORK=$(_read "IS_FORK")
IS_FORK=${{ github.event.pull_request.head.repo.full_name != github.repository }}
echo $IS_FORK
if [ "$IS_FORK" != true ]; then
DATE="$(date +%Y%m%d%H%M%S)"
Expand Down

0 comments on commit f37f168

Please sign in to comment.