Created
January 15, 2020 21:37
-
-
Save alevene/38513d0236cf30c04309b543b45be9a5 to your computer and use it in GitHub Desktop.
Ignore all DAGs except the keepers
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o errtrace | |
| set -o pipefail | |
| set -o nounset | |
| THIS_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"; readonly THIS_SCRIPT_DIR | |
| THIS_GIT_ROOT="$(cd "$THIS_SCRIPT_DIR" && git rev-parse --show-toplevel)"; readonly THIS_GIT_ROOT | |
| python3 "$THIS_SCRIPT_DIR"/dag_ignore.py "$@" > "$THIS_GIT_ROOT"/.airflowignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment