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/01 15:42:26 UTC
(superset) branch make-tech-debt-uploader-safer created (now f129511776)
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a change to branch make-tech-debt-uploader-safer
in repository https://gitbox.apache.org/repos/asf/superset.git
at f129511776 fix(actions): make tech debt uploader continue on error cases and skip w/o creds
This branch includes the following new commits:
new f129511776 fix(actions): make tech debt uploader continue on error cases and skip w/o creds
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(superset) 01/01: fix(actions): make tech debt uploader continue on error cases and skip w/o creds
Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch make-tech-debt-uploader-safer
in repository https://gitbox.apache.org/repos/asf/superset.git
commit f1295117763bdb15ff10824e1bdc60f86880ae27
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Thu Feb 1 08:42:18 2024 -0700
fix(actions): make tech debt uploader continue on error cases and skip w/o creds
---
.github/workflows/tech-debt.yml | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/tech-debt.yml b/.github/workflows/tech-debt.yml
index da92894ddc..8a89f0fb5f 100644
--- a/.github/workflows/tech-debt.yml
+++ b/.github/workflows/tech-debt.yml
@@ -3,13 +3,28 @@ name: Upload Technical Debt Metrics to Google Sheets
on:
push:
branches:
- - main
+ # - 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@v3
@@ -28,4 +43,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