Skip to content

Commit

Permalink
Do not run Azure Infra tests when secrets are not available
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-pajurek committed Sep 30, 2024
1 parent 0f898b8 commit 4c14686
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
test-with-azure-infra:
runs-on: ubuntu-latest
environment: azure
if: github.repository == 'spotflow-io/in-memory-azure-test-sdk'
if: ${{ github.secret_source == 'Actions' }}
permissions:
contents: read
id-token: write
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
publish-nuget-org:
runs-on: ubuntu-latest
needs: [init, build, test-with-azure-infra]
if: ${{ github.repository == 'spotflow-io/in-memory-azure-test-sdk' && needs.init.outputs.publish-nuget-org == 'true' }}
if: ${{ needs.init.outputs.publish-nuget-org == 'true' }}
environment: nuget-org
steps:
- name: Download Nugets
Expand All @@ -123,7 +123,7 @@ jobs:
needs: [init, build, test-with-azure-infra]
permissions:
packages: write
if: ${{ github.repository == 'spotflow-io/in-memory-azure-test-sdk' && needs.init.outputs.publish-github == 'true' }}
if: ${{ needs.init.outputs.publish-github == 'true' }}
steps:
- name: Download Nugets
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 4c14686

Please sign in to comment.