Last active
June 20, 2022 17:32
-
-
Save sravantit25/0dc4143c485d9d7ed9ce2713304c1072 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run-github-stats-checkpoint | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
great_expectations_validation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install python | |
uses: actions/setup-python@v3 | |
- name: Copy Repository contents | |
uses: actions/checkout@main | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run Checkpoint | |
run: | | |
replace_webhook=$(printf '%s\n' ${{ secrets.VALIDATION_NOTIFICATION_SLACK_WEBHOOK }} | sed -e 's/[\/&]/\\&/g') | |
sed -i "s/SECRET_SLACK_WEBHOOK/$replace_webhook/g" great_expectations/checkpoints/github_stats_checkpoint.yml | |
python great_expectations/checkpoints/run_github_stats_checkpoint.py | |
- name: Deploy DataDocs to Netlify | |
uses: nwtgck/actions-netlify@v1.2 | |
with: | |
publish-dir: "great_expectations/uncommitted/data_docs/local_site" | |
production-deploy: true | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment