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 <[email protected]> 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
