You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2024/02/06 17:56:11 UTC
(superset) branch master updated: fix(actions): make tech debt uploader not block CI and skip w/o creds (#26966)
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 5d46d3a5d3 fix(actions): make tech debt uploader not block CI and skip w/o creds (#26966)
5d46d3a5d3 is described below
commit 5d46d3a5d3bece687969a0c36e182353759c475c
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Tue Feb 6 10:56:03 2024 -0700
fix(actions): make tech debt uploader not block CI and skip w/o creds (#26966)
Co-authored-by: John Bodley <45...@users.noreply.github.com>
---
.github/workflows/tech-debt.yml | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/tech-debt.yml b/.github/workflows/tech-debt.yml
index d754ee3480..ccbf0ba181 100644
--- a/.github/workflows/tech-debt.yml
+++ b/.github/workflows/tech-debt.yml
@@ -3,13 +3,27 @@ name: Upload Technical Debt Metrics to Google Sheets
on:
push:
branches:
- - main
- master
jobs:
+ config:
+ runs-on: "ubuntu-latest"
+ outputs:
+ has-secrets: ${{ steps.check.outputs.has-secrets }}
+ steps:
+ - name: "Check for secrets"
+ id: check
+ shell: bash
+ run: |
+ if [ -n "${{ (secrets.GSHEET_KEY != '' ) || '' }}" ]; then
+ echo "has-secrets=1" >> "$GITHUB_OUTPUT"
+ fi
+
process-and-upload:
+ needs: config
+ if: needs.config.outputs.has-secrets
runs-on: ubuntu-latest
-
+ name: Generate Reports
steps:
- name: Checkout Repository
uses: actions/checkout@v4
@@ -28,4 +42,5 @@ jobs:
SPREADSHEET_ID: '1oABNnzxJYzwUrHjr_c9wfYEq9dFL1ScVof9LlaAdxvo'
SERVICE_ACCOUNT_KEY: ${{ secrets.GSHEET_KEY }}
run: npm run lint-stats
+ continue-on-error: true
working-directory: ./superset-frontend