From 9d87f0ae27dc6e78586c2b8bc450c2c8a2bed153 Mon Sep 17 00:00:00 2001 From: carmith Date: Mon, 20 May 2024 13:15:25 +0300 Subject: [PATCH] reverted action test to a working one --- .github/workflows/oidc-test.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/oidc-test.yml b/.github/workflows/oidc-test.yml index 33b1c61a3..1ec61907a 100644 --- a/.github/workflows/oidc-test.yml +++ b/.github/workflows/oidc-test.yml @@ -72,13 +72,16 @@ jobs: run: | jf rt s "some-repo/" - - name: Test User Output + - name: Test outputs shell: bash - run: test -n "${{ steps.setup-jfrog-cli.outputs.jf-oidc-user }}" - - - name: Test Token Output - shell: bash - run: test -n "${{ steps.setup-jfrog-cli.outputs.jf-oidc-token }}" + run: | + echo "os is $RUNNER_OS" + if [ -z "${{ steps.setup.outputs.jf-oidc-token }}" ]; then + exit 1 + fi + if [ -z "${{ steps.setup.outputs.jf-oidc-user }}" ]; then + exit 1 + fi # Removing the OIDC integration will remove the Identity Mapping as well - name: Delete OIDC integration