From 82740b30c49d085b01c984f237d47601c714b490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Gusm=C3=A3o?= Date: Wed, 27 Mar 2024 18:40:48 -0300 Subject: [PATCH] fix: revert deletion --- .github/workflows/elementary.yml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/elementary.yml diff --git a/.github/workflows/elementary.yml b/.github/workflows/elementary.yml new file mode 100644 index 00000000..291012fb --- /dev/null +++ b/.github/workflows/elementary.yml @@ -0,0 +1,38 @@ +name: Deploy Elementary Report +on: + pull_request: + branches: [ "main", "master" ] + workflow_dispatch: +jobs: + elementary: + runs-on: ubuntu-latest + steps: + - name: Checkout dbt project + uses: actions/checkout@v3 + - name: Run Elementary + uses: elementary-data/run-elementary-action@v1.11 + with: + warehouse-type: bigquery + adapter-version: 1.5.6 + profiles-yml: ${{ secrets.ELEMENTARY_PROFILES_YML }} + edr-command: + edr report + --file-path "report.html" + && + edr send-report + --google-service-account-path "/tmp/gcs_keyfile.json" + --gcs-bucket-name "${{ secrets.GCS_BUCKET_NAME }}" + --update-bucket-website "true" + bigquery-keyfile: ${{ secrets.BIGQUERY_KEYFILE }} + gcs-keyfile: ${{ secrets.GCS_KEYFILE }} + - name: Upload report + uses: actions/upload-artifact@v3 + with: + name: report.html + path: report.html + - name: Upload log + if: always() + uses: actions/upload-artifact@v3 + with: + name: edr.log + path: edr.log