Last active
November 2, 2022 09:24
-
-
Save sravantit25/103447095dbef8bfb7f21d72c65b829b to your computer and use it in GitHub Desktop.
This file contains GitHub Action workflow for running a Checkpoint
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment