Skip to content

Commit

Permalink
Skip Nessie testing when secrets are unavailable (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
itaiad200 committed Oct 8, 2020
1 parent 5430abc commit f820167
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/nessie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,23 @@ on:
- master

jobs:
check-secrets:
name: Check if secrets are available.
outputs:
secretsavailable: ${{ steps.enablejobs.outputs.secretsavailable }}
runs-on: ubuntu-latest
steps:
- id: enablejobs
env:
ENABLE_NEXT_JOBS: ${{ secrets.AWS_ACCESS_KEY_ID }}
run: |
echo "Enable next jobs based on secrets existence: ${{ env.ENABLE_NEXT_JOBS != '' }}"
echo "::set-output name=secretsavailable::${{ env.ENABLE_NEXT_JOBS != '' }}"
deploy-image:
name: Build and push Docker image
needs: check-secrets
if: needs.check-secrets.outputs.secretsavailable == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit f820167

Please sign in to comment.