From 81fea5a5b6f5dc4c1ab4a7bc7af99cf35edc651a Mon Sep 17 00:00:00 2001 From: elasticspoon Date: Tue, 14 May 2024 09:49:54 -0400 Subject: [PATCH] fix: dependabot failures due to no secrets Dependabot does not get passed secrets. Just don't run the actions that require secrets if they aren't passed in. --- .github/workflows/combine_and_report.yml | 4 ++-- .github/workflows/rspec.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/combine_and_report.yml b/.github/workflows/combine_and_report.yml index a9bf5f9c47..b0fe370f4b 100644 --- a/.github/workflows/combine_and_report.yml +++ b/.github/workflows/combine_and_report.yml @@ -15,11 +15,11 @@ jobs: find artifacts -name "test_reports*.zip" -exec unzip -d test_reports {} \; find test_reports -name "**/test_reports*.zip" -exec unzip -d test_reports {} \; - name: Merge parallel runtime log parts - if: github.repository == github.event.pull_request.head.repo.full_name + if: secrets.ACCOUNT_NAME != '' run: | cat artifacts/**/parallel_runtime_rspec*.log > parallel_runtime.log - name: Upload log file to Azure Blob Storage - if: github.repository == github.event.pull_request.head.repo.full_name + if: secrets.ACCOUNT_NAME != '' env: AZURE_STORAGE_KEY: ${{ secrets.STORAGE_ACCESS_KEY }} AZURE_STORAGE_ACCOUNT: ${{ secrets.ACCOUNT_NAME }} diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index e09da97923..1f00164d2a 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -124,7 +124,7 @@ jobs: zip -r test_reports_${{ env.GROUPS_UNDERSCORE }}.zip tmp/reports - name: Compress log - if: github.repository == github.event.pull_request.head.repo.full_name + if: secrets.ACCOUNT_NAME run: | mv tmp/parallel_runtime.log parallel_runtime_rspec_${{ env.GROUPS_UNDERSCORE }}.log @@ -135,7 +135,7 @@ jobs: path: test_reports_${{ env.GROUPS_UNDERSCORE }}.zip - name: Upload file parallel tests runtime log - if: github.repository == github.event.pull_request.head.repo.full_name + if: secrets.ACCOUNT_NAME uses: actions/upload-artifact@v4 with: name: parallel_runtime_rspec_${{ env.GROUPS_UNDERSCORE }}.log