mirror of https://github.com/apache/superset.git
fix(actions): make tech debt uploader not block CI and skip w/o creds (#26966)
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com>
This commit is contained in:
parent
5b34395689
commit
5d46d3a5d3
|
@ -3,13 +3,27 @@ name: Upload Technical Debt Metrics to Google Sheets
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
process-and-upload:
|
config:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -28,4 +42,5 @@ jobs:
|
||||||
SPREADSHEET_ID: '1oABNnzxJYzwUrHjr_c9wfYEq9dFL1ScVof9LlaAdxvo'
|
SPREADSHEET_ID: '1oABNnzxJYzwUrHjr_c9wfYEq9dFL1ScVof9LlaAdxvo'
|
||||||
SERVICE_ACCOUNT_KEY: ${{ secrets.GSHEET_KEY }}
|
SERVICE_ACCOUNT_KEY: ${{ secrets.GSHEET_KEY }}
|
||||||
run: npm run lint-stats
|
run: npm run lint-stats
|
||||||
|
continue-on-error: true
|
||||||
working-directory: ./superset-frontend
|
working-directory: ./superset-frontend
|
||||||
|
|
Loading…
Reference in New Issue