Skip to content

Instantly share code, notes, and snippets.

@sravantit25
Last active November 2, 2022 09:24
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sravantit25/103447095dbef8bfb7f21d72c65b829b to your computer and use it in GitHub Desktop.
This file contains GitHub Action workflow for running a Checkpoint
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